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

how to link an existing branch/pull request to a jira issue

How can I link an existing branch (created from stash/git, not from JIRA by "Create branch") to a jira issue?

Same thing for a pull request (other than adding a comment with the pull request link...)

3 answers

Use the JIRA ticket number in the title of the pull request - that should link them.

In our case we use Git Flow which requiere that we create the branches like this: "Feature/XX-15" , "Hotfix/XX-22"

Is there a way that JIRA supports gitflow? 

Like Jeremy Harmening likes this

I use gitflow at my job and the link still seems to work just fine. I don't believe there was any extra setup for this.

the question refers to code you want integrated as resolution for your issue, which has been already developped and reviewed in an existing pull request, cherry picked from another branch, from upstream, etc. with names/ids not related to current issue.

this above mentioned code fixes an issue created in Jira by some other engineer/customer etc.

so how can you make the branches/pull requests not containing the jira id in the names appear in the list of branches/pull requests for the new issue?

I'd love to know how to be able to do this too.

It's weird that it's easier to do this between Pivotal Tracker and GitHub compared to JIRA and Bitbucket, two products by the same company.

Like Roy Ronalds likes this

Hi @Chris Taormina 
Sorry for bother you, but you say you use gitflow and Jira at your job.
How do you handle release versions assigned to a Jira issue?
Here a full question: https://community.atlassian.com/t5/Jira-questions/Setup-Jira-Issues-version-when-using-Gitflow/qaq-p/1167931
Hope you can take the time to review it.
Thanks!

Hi guys,

It would be great if your answer also contained a screenshot.

Then, it will be more helpful.

Thanks,

Binh

It doesn't seem to work with VSTS. Work with Bitbucket though

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you