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: 

Scripted (Groovy) Condition (JMWE app) Question

Pete P
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.
May 27, 2021

I need to add a Scripted (Groovy) Condition to my workflow so that only a certain set of values will make a transition appear. 

My 2 fields are

Priority - issue.get("customfield_11427")

Related Issue - issue.get("customfield_11617")

I want to expose the transition only if Priority = "Level 4" and Related Issue = "" (Null).

Can someone assist me in the proper syntax I seem to be having problems working it out.  

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
David Fischer
Community Champion
May 27, 2021

Hi @Pete P 

I believe this should work:

issue.getAsString("customfield_11427") == "Level 4" && !issue.get("customfield_11617")
Pete P
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.
May 27, 2021

@David Fischer  many thanks for prompt reply 😊