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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

847 views 3 12
Read article

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