Search tags across multiple Repositories Edited


We work in an environment where we are constantly working on multiple projects for multiple customers at any one time. These projects can sometimes have multiple "Opportunity Numbers" associated with them and generally someone will come to us with an opp number, looking for code.

I would like to be able to just tag the repositories with the opp number and then search all repositories for tags of the number and the associated repository is listed.

I can't seem to do this with BitBucket, does anyone know how? Or, does anyone know a better way? We need everything in one place (BitBucket).


2 answers

1 accepted

0 votes
Accepted answer

Hi Cameron, at the moment it's not possible to search for a tag across different repositories. If you'd like, you can submit a Feature request explaining your use case at if you're using Bitbucket Server, or site/master if you're using Bitbucket Cloud.




Are "opportunity numbers" related to commits, or related to repositories?

And are they strictly numeric?  If they are related to commits, and numeric, you could use the fact that Bitbucket automatically indexes (across all repos) all commits that have messages containing JIRA style ticket numbers.

And so if a commit lands for "opportunity # 123", get the developer to commit with the code "OPP-123" anywhere in the commit message.

If you do that, then searches across all repos for any instance of "OPP-123" are quite doable.  My own paid add-on's "All Branches Graph" would be able to help you.  Just put "OPP-123" in the search box on that screen.

In the screenshot notice the tabs:  "aui (4) | a (2) | b (1) | c (1)".  Those are repositories (across all projects) that contains any commit messages with "DP-788".  It leverages the fact Bitbucket already indexes all JIRA-style keys found anywhere in commit messages.



My add-on (Bit-Booster - Rebase Squash Amend) is able to report on JIRA-style keys in the commit messages like this even if you don't use JIRA.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

451 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you