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
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events