Forums

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

configuring workflow "Branch created (Bitbucket Server)" how to identify it?

Samuel Donadelli July 5, 2018

 

in the tutorial how to configure workflow (see link below) it mentions we can trigger after a "branch created (bitbucket server)"

I understood from the "create commit" it uses the JIRA # inside of the comment. How do we do it for the "branch created" if we cannot insert comments in the creation of a branch? 

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

2 answers

2 accepted

1 vote
Answer accepted
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2018

Hi @Samuel Donadelli,

Workflow triggers are configured in Jira but are based on operations performed in other tools (Bitbucket Server in this case).

 

In order to use the the "Branch created" trigger, you'll need to use the Jira issue key in the branch name.

A common pattern would be the following:

- Jira issue key: PROJ-1

- Bitbucket branch name: bug/PROJ-1_issue_short_description

 

When the branch is created in Bitbucket Server, the transition will be automatically performed in Jira. In other words, Bitbucket Server will send an event to Jira and, based on that, Jira will perform the issue transition.

 

Hope this helps.

 

I also replied to the other thread here. Let me know if there are any questions.

 

Cheers,

Caterina - Atlassian

1 vote
Answer accepted
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.
July 5, 2018

Hi @Samuel Donadelli

Welcome to the community!

Whenever the brach will create from the Jira issue using the development panel create branch option then it will contain the Jira issue key itself within the branch.

So if you used the branch created a workflow trigger for creating a branch then the respective branch will also contain the issue key like TEST-1 <Summary>/<branch_type>.

Samuel Donadelli July 6, 2018

Hi Yogesh, thanks for answering my question. 

My understanding is in order to launch this "create branch" from JIRA, it still takes a manual intervention from the user. 

Do we have a manner of automatically triggering an action from JIRA to Bitbucket (github) to "create branch"? 

 

Cheers, Samuel

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.
July 6, 2018

Nope, We need to create a branch manually only.

Samuel Donadelli July 6, 2018

I see Yogesh. 

 

Then JIRA cannot execute Bitbucket commands as a native feature. I heard we could pass Bitbucket commands by using a REST API available in JIRA. 

 

Would you know if there is a manner to trigger a event from JIRA, to start a REST API script to execute Bitbucket commands? 

 

Thanks again, Samuel 

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.
July 6, 2018

Sorry, Might be it is there but did not use anymore.

Suggest an answer

Log in or Sign up to answer