Is it possible to map a JIRA component to a Bitbucket repository?

Christopher Chong August 6, 2018

We have a JIRA project that has several components, each with their own Bitbucket repositories. Is it possible to configure the Bitbucket+JIRA integration in such a way where clicking on "Create branch" in a JIRA issue will default to creating a branch in the Bitbucket repo based on the component?

Right now, it defaults to either the last repository selected or the first repository in alphabetical order.

3 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 6, 2018

The short answer is no, that is not possible. There is a request to be able to link a Jira project to repositories, JRASERVER-38738, and I would suggest you go a vote on it if that is something you would like to see.

0 votes
Keylon Duran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2024

it's possible actually just linked and specific component in a bitbucket repository with out show others issues in other components??

0 votes
Thomas Totter January 9, 2023

I was facing a similar requirement and came up with a rather cheap workaround using Jira automation:

I created a manually triggered automation rule (create-branch-for-component) which creates a new branch in a bitbucket/repository. The repository name (we had over a 100 repos to choose from) is derived from the (currently selected) component of the issue.

Since in our case it was also a requirement that more than one branch might need to be be created per issue/component/repository, the main challenge was to find a logic for generating unique, descriptive branch names with Jira wildcards (or more like: finding the relevant documentation in the chaos that is called Atlassian website).

Suggest an answer

Log in or Sign up to answer