Forums

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

How to refer to trigger issue field in linked issues while doing automation

Peyush Agarwal
Contributor
May 21, 2021

Hi,

 

I am automating scenario where I have put trigger condition as change of field "Sprint"

if this field is changed, then it will check Linked issue and copy the Sprint field from trigger issue to Linked issue. 

I am also generating email to reporter with reference of Sprint version. Now I am not able to understand how do I refer to Sprint version of trigger issue. I am using {{Issue.sprint}} but that doesnt return the right value as this rule is under Linked script. 

 

Would it be something like {{issue.triggersprint}}? 

1 answer

1 accepted

1 vote
Answer accepted
Callum Carlile _Automation Consultants_
Community Champion
May 21, 2021

Hi @Peyush Agarwal 

You should use a Branch in the automation rule and set this to action all of the linked issues.

Then using an Edit Issues action under this branch, selecting the Sprint field from the dropwdown, you can click on the 3 dots and select Copy from, and select the Trigger Issue as seen below.

You can then either add the email action directly under the Edit Issues action (which will send the email to reporter of all of the linked issues) or you can add the email action outside of the branch, which will only send the one email to the reporter of the triggering task.

Hope this helps, let me know if you have any questions!

auto rule.png

Callum Carlile _Automation Consultants_
Community Champion
May 21, 2021

Also if you need to use any smart values in the email, check out this link for all of the sprint-related smart values available - I think from what you've described, you're looking for the Sprint Name, which would be {{sprint.name}}.

Peyush Agarwal
Contributor
May 21, 2021

Thanks a lot this should help me a lot 

Michael Bourdette
Contributor
April 29, 2022

How would you go about reversing this logic? Meaning, I want the Sprint field in the linked issue to update the Sprint field in the trigger ticket. I should note that the Trigger and Linked tickets are in two separate projects.

 

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events