Forums

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

Need help with Automation rule

Prathap DL
Contributor
October 4, 2024

I'm updating Source field value Based on the condition of destination issue field value while linking a ticket. 

Ex: Source issue has a field where i need to update the value.

Destination issue has a field where i need to check the values.

When Both tickets are linked then 

If Destination issue field value is 123 then update Source issue field values has ABC

If destination issue field value is 456 then update source issue field values has XYZ

 

1 answer

1 accepted

3 votes
Answer accepted
Trudy Claspill
Community Champion
October 4, 2024

Hello @Prathap DL 

Have you tried to construct this rule? If so, please share with us the details of what you have, and let us know exactly what question you have.

Prathap DL
Contributor
October 4, 2024

Hi @Trudy Claspill 

Please find the below screenshots.

Rule.png

Currently rule is executing and the log is showing that destination issue is edited. I want source issue should be edited. But Rule should check destination field value first then based on that source issue field should be updated. 

Trudy Claspill
Community Champion
October 4, 2024

Within an Automation Rule that uses the Issue Linked trigger, "source" and "destination" have specific meanings based on the Link Type you have specified. Refer to my answer here for a detailed explanation:

https://community.atlassian.com/t5/Jira-questions/How-can-I-get-field-from-linked-issue/qaq-p/2807497#U2807518

Are you using the terms "source" and "destination" the same way Jira does in this case? Does the log's notes about which issue is the source (CH-103) and which issue is the destination (CH-102) match your use of the terms?

If so, then if you want to edit the source issue based on applying a Condition to the destination issue, then you need to use a Smart Value Condition instead of a branch.

The branch shifts the rule focus to the destination issue, so all actions within the branch are applied to the destination issue. With a Smart Value Condition you can check a field in the {{destinationIssue}} while keeping the rule focus for future Actions on the source issue.

I see that you want to check if the Type of the destination issue is one of a set of values. In order to implement that, you will need to start by selecting the IF or ELSE condition.

Screenshot 2024-10-04 at 9.14.32 AM.png

Then click on the At least one condition matches button.

Then add two Smart Value conditions to check if the {{destinationIssue.type}} field equals each of the issue type values.

Screenshot 2024-10-04 at 9.17.35 AM.png

And finally, add your Edit Issue action.

Screenshot 2024-10-04 at 9.20.21 AM.png

Like Bill Sheboy likes this
Prathap DL
Contributor
October 4, 2024

Hi @Trudy Claspill it worked.

"Thank you so much for your help. I really appreciate it."

Like Trudy Claspill likes this

Suggest an answer

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

Atlassian Community Events