Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add existing bitbucket branch to a Jira issue

Gal Fatal
Community Champion
January 7, 2024

Hi,

Looking for a way to link old branches to Jira issues (currently issue does not have linked branch)

The Development tool fields in Jira allow only to create branch, but not to link existing one.

Any idea ?

Thanks, Gal

2 answers

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2024

Hey @Gal Fatal 

Unfortunately, it's impossible to link an existing or old branch with Jira issues after its creation. However, I want to understand why you wish to connect an old branch with the Jira issue. Could you provide me with a use case?

Regards,
Syahrul

Gal Fatal
Community Champion
January 8, 2024

Hi @Syahrul 

I am supporting company that used Bitbucket in the last year (without Jira)

Now, they start using Jira and migrate some tasks from excel file.

So for the first time they would like to connect between existing branches in Bitbucket to the new Jira issue they add to Jira.

Another scenario is they sometimes create branch in Bitbucket BEFORE the Jira issue is ready and would like to connect them later.

Last scenario is sometimes they use one branch to resolve 2 Jira issues and would like to connect both Jira issue to the same branch. (not best practice but can happen)

 

Any idea for a solution oe workarround ?

 

Thanks, Gal

Like Vickie Scarffe likes this
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2024

Hi @Gal Fatal 

Thank you for providing more context.

Based on the information given and my current understanding, what you're attempting may not be possible directly through Bitbucket. However, I must mention that my familiarity with Jira's capabilities is somewhat limited. Therefore, I can't definitively say whether your case can be handled from Jira's end.

I would suggest contacting the Jira support team by creating a support ticket. They should be able to provide a more informed perspective on the matter.

Regards,
Syahrul

Like Gal Fatal likes this
0 votes
Melvin Abraham
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!
January 31, 2025

I found a way. But it is a bit roundabout way of doing.

Go to your issue where you can create a branch in Jira. Create a dummy branch from there.

Click on create a pull request-> then once you are redirected to bitbucket for the pullrequest confirmation, change the branch from dummy branch(the one we created just now) to the real branch you wanted to link.-> confirm the PR. 

Now if you go back and refresh the Jira tikcet, you will see that the branch will be linked.

(Delete the dummy branch from bitbucket and remove the PR if you want.).

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events