Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-10071

Exclude projects or repositories from code search results

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Search
    • Labels:
      None
    • UIS:
      459
    • Feedback Policy:
      We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      Problem Definition

      Code search does not allow you to exclude projects and or repositories. The documentation states that if multiple modifiers are in a query they are implicitly combined using "AND". No such functionality exists to exclude or use "NOT" with modifiers if you are wanting to exclude a project or repository from your text search.

      <more information needed - why is this a problem?>

      Suggested Solution

      Allow code search to exclude projects and or repositories. Example queries below:

       # Search for the word "text" everywhere EXCEPT repository Test.
      
      text NOT repo:test
      
       # Search for the word "text" everywhere EXCEPT project Test.
      
      text NOT project:test
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mwilliams@atlassian.com Mark A.
              Votes:
              84 Vote for this issue
              Watchers:
              52 Start watching this issue

                Dates

                Created:
                Updated: