JIRA subtasks and git feature branch

What is the best practice for branching / commit messages when using JIRA issues with subtasks. I typically create a user story and break that story down into technical tasks. However, I was curious how commit messages / feature branching should work so the source tab links up correctly.

Currently I do a bunch of work which results in multiple commits in a feature branch. Once the feature is complete I squash the commits and ensure the commit message references the user story.

Just looking for some best practices...

1 answer

0 vote

Hi ipcove.

I think you might be referring to the explanation we give on the JIRA integration document. Basically:

- Any JIRA issue key you mention on your commit messages will be automatically linked in Stash to your JIRA. Stash recognizes a defaul JIRA issue key style as described on the Using custom JIRA issue keys with Stash document.

- The counterpart is that the issue keys on JIRA will pick up all the commits in Stash associated with that JIRA issue key (in your case, there will be an issue key for each story you create).

Does it make sense to you now? I believe the best practice on how to create those issues will be more to you. Stash/JIRA integration will do the rest of the trick to organise the commits/JIRA issue keys for you.

Best regards,

Thiago Bomfim

Atlassian Support - DevTools

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

244 views 1 18
Join discussion

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