Forums

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

How to update a JIRA item when a pull request is merged to a specific branch?

Miko Stefanov
Contributor
March 5, 2021

In our project, we want to automate the process so that when a pull request is merged to a specific branch in BitBucket the corresponding JIRA item to be updated with a status/fixVersion.

I tried with Automation Triggers but unfortunately, there is no way to add a condition for a specific target branch.

How can I do this?

If there is no way, how can I request JIRA Team a feature?  

 Thanks!

1 answer

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
March 5, 2021

Hi @Miko Stefanov 

Does the smart value {{pullRequest.destinationBranch}} have the information you need to perform the comparison?

https://support.atlassian.com/jira-software-cloud/docs/smart-values-development/

Best regards,

Bill

Miko Stefanov
Contributor
March 7, 2021

Thank you very much, @Bill Sheboy ! That was exactly what I was looking for!

I owe you a beer!

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events