It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Search tags across multiple Repositories Edited

Hi,

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

Thanks

2 answers

1 accepted

0 votes
Answer accepted

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 jira.atlassian.com if you're using Bitbucket Server, or site/master if you're using Bitbucket Cloud.

Cheers!

Ana

 

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.

all-branches-condensed-graph.png

 

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,001 views 1 16
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