Forums

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

Jira automation: Check whether a version is already released when an issue is assigned to it

Nick de Palézieux
Contributor
November 20, 2023

I'm trying to write a pretty simple automation rule: When somebody sets the "Fix Version" on an issue to a version that is already released, warn them that this should not be done.

I have an automation set up to trigger whenever a value is added to the Fix Versions field.

Screenshot 2023-11-20 at 13.45.41.png

I'm struggling to check the {{released}} attribute of the smart value. I would have expected that {{fieldChange.to.released}} works. But it doesn't. I can get the ID and the name of the version, but not any of its attributes (see screenshots below). How can I write a condition based on whether the version that was just added is released or not?

Screenshot 2023-11-20 at 13.47.03.pngScreenshot 2023-11-20 at 13.47.39.png

 

Thanks for your help

1 answer

1 accepted

0 votes
Answer accepted
Marc Jason Mutuc
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.
November 14, 2018

*** FIXED ***

Do the following query (I didn't have access so I asked another person to do this.

select * from fieldlayoutitem where description like '%<script%' OR description like '%<SCRIPT%';

Found the field with scripts, removed the script and the error went away. 

Suggest an answer

Log in or Sign up to answer