Forums

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

How to Avoid Updating Field Based on Condition?

Rita Arellano
Contributor
April 25, 2025

Hello there, 

There is a piece in my automation that is not working. I have highlighted it, all else works as expected. Basically I would like to exclude story's with the component = XYZ and a status = Done from having the following fields updated: Fix Version, Target Release, and Summary each time the epic is updated. Can someone let me know what I am doing wrong? Not to Edit.jpg

1 answer

2 votes
Walter Buggenhout
Community Champion
April 25, 2025

Hi @Rita Arellano,

Have you tried updating your initial query to exclude the items you don't want to update? Something like:

For JQL:

"Epic Link" = {{triggerIssue.key}} AND issuetype = Story AND (fixVersion is
not empty OR "Target Release" is not empty) AND component != XYZ AND
status != Done

Hope this helps!

 

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 26, 2025

Hi @Rita Arellano 

Yes, and...to Walter's suggestions:

Please look carefully at the condition you have highlighted as it is checking for Stories assuming the current issue is an Epic, but that is not the case once inside of the branch.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer