Configure Jira and Bitbucket Branching Model To GitFlow

I try to use Atlassian products across all development process. I chose GitFlow as a working flow on SourceTree, and aim to streamline it via Jira and Bitbucket as well.

Few things I would like to understand:

  1. Is there a way to configure the behavior of "create branch" on Jira to identify features/hotfixes/bugfixes and tell Bitbucket to open branches accordingly? (ie for a feature called XXX-123, open branch feature/XXX-123 from develop branch). As far as I see, Bitbucket opens a branch called XXX-123, but from master.
  2. Is there a way to close a branch after the issue has been closed? I see "create branch" button on closed issues.

Thanks,

Gal

5 answers

1 accepted

Opened a request on the SourceTree repo.

Thanks for the sugestion... I know my way on git and this is not what I asked for. Since my team already use Jira and Bitbucket, and Atlassian offers integration between all its products, I wondered if there is a way to streamline development process, especially branching and merging, which is human error prone.

Timothy Chin Community Champion Dec 15, 2013

For item 1, if the integration only opens a branch in master, then I guess you're stuck with that. I know that if you use Stash, it allows you to choose which branch you want to create it on.

Thanks for that. I know stash supports it better than Bitbucket. If you look at the URL in Bitbucket, after you click the "create branch" on Jira, you can see it has "IssueType=Feature" in the query string, but Bitbucket ignore it.

I think it can be better if you define the Bitbucket repo to use GitFlow and use this info to create the equivalent branch.

Unfortunately, this is an issue needs to be resolved by the dev team of Atlassian.

I will be waiting and meanwhile do things manualy.

Unfortunately, this is an issue needs to be resolved by the dev team of Atlassian.

I will be waiting and meanwhile do things manualy.

Unfortunately, this is an issue needs to be resolved by the dev team of Atlassian.

I will be waiting and meanwhile do things manualy.

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

151 views 1 17
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