The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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

Rita Arellano
Contributor
April 29, 2025

Thanks @Walter Buggenhout and @Bill Sheboy I've tried several ways and only the below seem to work for my case: 

Solved.jpg


complete.jpg