Jira automation - Pull request merged

ori gal March 27, 2023

Hello!

 

When I apply the automation rule: 

When a pull request is merged → then move issue to done

How can I make sure that its only triggered only when the PR is to main (and not to dev)?

1 answer

1 accepted

1 vote
Answer accepted
Ryan Northfield _Mumo Systems_
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 27, 2023

@ori gal 

You may be able to use an "Advanced Compare Condition" using the development smart values.

This page lists the relevant development smart values.

Looking at the options, would {{pullRequest.destinationBranch}} serve your purpose? 

ori gal March 27, 2023

Hi @Ryan Northfield _Mumo Systems_  , thank you for your response.

Im not sure, but I will try and let you know.

Suggest an answer

Log in or Sign up to answer