Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,100
Community Members
 
Community Events
184
Community Groups

Automatic Creation of branch From JIRA

Presently, the workflow to manage our code is erroneous. To over come this we have decided upon the new workflow. Now with tool in hands we trying to implement this.

The first step towards implementing is to figure out the way to automatic create feature branch from develop when ever the item moves from TO-DO ---> In-Progress in JIRA.

I spent yesterday and today to figure this out but with no result. As per Atlassian documentation there is a way to create triggers that will automatically update item in JIRA whenever some action is performed against the item key. However, I need the other way round as in where if an item is moved from to-do --> in -progress a branch is created. Following is what I would like to achieve.

TO D0 --> In Progress -- branch forked out from Develop. In Progress --> Need Testing -- forked out branch merged into testing enviroment.

In Testing --> Testing Done --- Merge the forked branch to develop as well as staging and delete the fork branch.

Please suggest.

7 answers

Is there any example / 'how to' available yet?

I'd also like to have an example of this

Any example(s) would be appreciated.

Hi Tarun, 

Thanks for the link. I went through it and unfortunately I could not find what I want. Or perhaps I wasn't able to specific the requirements clearly.  The links talks how creating triggers on workflow in JIRA will help to transition item from one state to another in JIRA itself based upon the action that has being done in the linked software (in our case it is BItBucket). So what I understand is that the communication happens from linked software(BitBucket) to JIRA.

 

However my requirement is whenever an item in JIRA is moved from TO-DO to In-Porgress a branch is created in BiTBucket. In this scenario Bitbucket is reacting to action that has being done at the JIRA Level. 

I hope this is possible.

 

Regards,

Ajay

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 18, 2016

For that please write a workflow post-function to create a branch in bitbucket, from the post-function of the workflow you can invoke a webhook which is basically a REST call to create a branch in bitbucket. 

Hello Tarun,

 

Would you have any example of this webhook? I've tried it but not success for now

@Tarun Sapra -  Would you have any example of this webhook?  I'm very interested to see how you have it setup.

 

Thanks!

I am also interested...has anyone got an example yet?

If anyone has an example, that would be great!

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 17, 2016

Hi @ajay sikka,

 

Please see here , this documentation should answer your queries - https://confluence.atlassian.com/adminjiraserver071/configuring-workflow-triggers-802592811.html

Triggering branch/code commits/ merge etc during workflow transition.

Tarun,

Did you ever come up with a solution for creating a branch through a post function on an issue's transition from ToDo to In Progress?  We could really use this!  Thanks in Advance!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events