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

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

@David Fischer  many thanks for prompt reply 😊

Suggest an answer

Log in or Sign up to answer