Forums

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

Automation condition based on pull request and branch

Jana Mandulová April 29, 2025

Hi, I need to adjust automation rule for transition of issue to Test status, based on pull request merge. It works now, but I need to limit it only for cases when PR source branch equals to the original branch of the issue.

Will it work with these smart values?

{{pullRequest.sourceBranch}} equals {{branch.name}}

 

Thanks

1 answer

1 accepted

0 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.
April 29, 2025

Hi @Jana Mandulová 

I believe those smart values only work with their related triggers, pull request and branch, respectively, and are not otherwise available to the issue:

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

Some workarounds are to use separate rules, saving the smart value information for later use in the issue as custom fields, or to use the Send Web Request action to call the REST API endpoints for your source control tool to access it.

Kind regards,
Bill

Jana Mandulová May 5, 2025

Thanks Bill for your answer!

Jana

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events