• 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.

      Original request description:

      Problem

      Stash currently supports searching for specific files, not code and not across multiple repositories.

      Suggested solution

      Extending this to also search for code within a single or across multiple repositories would be a great addition.

      Workaround

      You can try using one of the following solutions:

      Please note that the above are not Atlassian developed plugins, so use them at your own risk.

            [BSERV-2851] Code search

            Antony, it's already there (in new version) and it's working like a charm  

            Piotr WikieÅ‚ added a comment - Antony, it's already there (in new version) and it's working like a charm  

            +1. It should make my life easier.

            Antony Joseph Peter added a comment - +1. It should make my life easier.

            tim.oppenlander2077704105 added a comment -

            +1, @Paul Johe's comment. I'm really looking forward to getting this deployed. It will help us a ton.

            tim.oppenlander2077704105 added a comment - +1, @Paul Johe's comment. I'm really looking forward to getting this deployed. It will help us a ton.

            Paul Johe added a comment -

            Very nice that Bitbucket Server finally has this feature! Well done Atlassian!

            Paul Johe added a comment - Very nice that Bitbucket Server finally has this feature! Well done Atlassian!

            steve added a comment -

            We've made code search generally available in the 4.6 version of Bitbucket Server. You can read the 4.6 release notes here: https://confluence.atlassian.com/display/BitbucketServer/Bitbucket+Server+4.6+release+notes

            You can download the latest version of Bitbucket Server from
            https://bitbucket.org/product/server

            Please feel free to get in touch with us if you'd like to talk about this, or any other feature in Bitbucket Server.

            steve added a comment - We've made code search generally available in the 4.6 version of Bitbucket Server. You can read the 4.6 release notes here: https://confluence.atlassian.com/display/BitbucketServer/Bitbucket+Server+4.6+release+notes You can download the latest version of Bitbucket Server from https://bitbucket.org/product/server Please feel free to get in touch with us if you'd like to talk about this, or any other feature in Bitbucket Server.

            steve added a comment -

            Thanks everyone for your feedback on this so far. If you've had a chance to evaluate code search in Bitbucket Server to date, it'd be great if you could quickly fill out an anonymous survey to tell us how we're doing. Simply visit http://goo.gl/forms/MF6wb5Cswt it shouldn't take more than a few minutes. If you have any specific items you want to talk about, please feel free to email me or provide your email on the feedback form and we'll get in touch as soon as we can.

            Thanks again,

            Steve King
            steve.king@atlassian.com
            Product Manager - Bitbucket

            steve added a comment - Thanks everyone for your feedback on this so far. If you've had a chance to evaluate code search in Bitbucket Server to date, it'd be great if you could quickly fill out an anonymous survey to tell us how we're doing. Simply visit http://goo.gl/forms/MF6wb5Cswt it shouldn't take more than a few minutes. If you have any specific items you want to talk about, please feel free to email me or provide your email on the feedback form and we'll get in touch as soon as we can. Thanks again, Steve King steve.king@atlassian.com Product Manager - Bitbucket

            steve added a comment -

            Hi everyone,

            I've updated the description of the request with some good news. We're running an early access program for code search in Bitbucket Server, which is available for download from our Bitbucket Server EAP Page

            Code search is still in EAP and we do not recommend or support running Bitbucket Server with code search in production instances, but we encourage you to try it out and provide us with feedback via Atlassian Support.

            Thanks,

            Steve King
            steve.king@atlassian.com
            Product Manager - Bitbucket

            steve added a comment - Hi everyone, I've updated the description of the request with some good news. We're running an early access program for code search in Bitbucket Server, which is available for download from our Bitbucket Server EAP Page Code search is still in EAP and we do not recommend or support running Bitbucket Server with code search in production instances, but we encourage you to try it out and provide us with feedback via Atlassian Support . Thanks, Steve King steve.king@atlassian.com Product Manager - Bitbucket

            tim.oppenlander2077704105 added a comment -

            "... it is in the final stages of development."

            That sounds encouraging. Thank you for that update.

            This is something we were able to do with ClearCase when we started using it back in 1998 or so. We had to use a command line for it, and it was slow, but at least we had a method that worked. Command line access to enterprise stash servers isn't really an option, so the lack of a broad search feature is keenly felt by those of us used to having a way to do it.

            tim.oppenlander2077704105 added a comment - "... it is in the final stages of development." That sounds encouraging. Thank you for that update. This is something we were able to do with ClearCase when we started using it back in 1998 or so. We had to use a command line for it, and it was slow, but at least we had a method that worked. Command line access to enterprise stash servers isn't really an option, so the lack of a broad search feature is keenly felt by those of us used to having a way to do it.

            Volker Kleinschmidt added a comment - - edited

            We have well over a hundred repos within the same project. It's absolutely ridiculous that the Stash web interface doesn't come with a feature for locating a file by name among those repos - and obviously it would be ludicrously difficult to search each repo for the file manually. Actually searching for code or comments within those files would be important too, but searching by file/class name is so basic one really wonders who put this product together without that feature.

            The suggestion to clone all the code locally and locate the file via find (or grep) commands only applies to code you're actually working with - but when you need to review someone else's code you have absolutely no reason to create a local repo for it. Think just for one moment of your tech support staff (what a crazy idea, I know).

            Volker Kleinschmidt added a comment - - edited We have well over a hundred repos within the same project. It's absolutely ridiculous that the Stash web interface doesn't come with a feature for locating a file by name among those repos - and obviously it would be ludicrously difficult to search each repo for the file manually. Actually searching for code or comments within those files would be important too, but searching by file/class name is so basic one really wonders who put this product together without that feature. The suggestion to clone all the code locally and locate the file via find (or grep) commands only applies to code you're actually working with - but when you need to review someone else's code you have absolutely no reason to create a local repo for it. Think just for one moment of your tech support staff (what a crazy idea, I know).

            Firstborn added a comment -

            It's unfathomable that this feature has not been included from day 1 for Stash/Bitbucket Server customers. It is long overdue.

            Firstborn added a comment - It's unfathomable that this feature has not been included from day 1 for Stash/Bitbucket Server customers. It is long overdue.

              Unassigned Unassigned
              jhinch jhinch (Atlassian)
              Votes:
              409 Vote for this issue
              Watchers:
              233 Start watching this issue

                Created:
                Updated:
                Resolved: