Forums

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

Jira - create branch automatically

Daniel Brazil
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!
June 6, 2018

Hello, 

My company has bitbucket, and Jira.

For some of the user stories I have, I need 10 branches. 

The current solutions:

1. Create a Jira story, or have one already

2. create a branch, Enter the following: Select: repo A, Branch Type: feature, branch from: master. Leave branch name default. Save

3. create a branch, Enter the following: Select: repo B, Branch Type: feature, branch from: master. Leave branch name default.  Save. 

repeat this for repo C,D,E,F,G,H,I,J.

 

I was wondering if there is a a way to do this automatically?

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2018

HI @Daniel Brazil

Welcome to the community!

User Workflow trigger it will create automatically branch in bitbucket when the transition happens let say Todo --start to progress.

In this case, you need to add the Branch created trigger on In progress transition whenever transition will happen it will create automatically branch in Bitbucket.

Please visit the below articles for more details...

https://confluence.atlassian.com/jirasoftware/blog/2015/07/workflow-automation-triggers

https://confluence.atlassian.com/adminjiraserver071/configuring-workflow-triggers-802592811.html

Bastian Stehmann
Community Champion
June 6, 2018

Hi @Yogesh Mude,

I think, it is the other way round. The trigger will transition the issue when a branch is created. That is, at least, what also is described in the articles that you link.

So if you add the "Branch created" trigger to the "Todo - In Progress" transition, Jira will use that transition when you create a new branch for this issue. 

Like Karan Churi likes this
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2018

HI @Bastian Stehmann

Yes, agreed that is reverse.

Thanks for correcting me.

Like aafaqali likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events