Forums

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

Behaviours condition, set field mandatory based on Insight field attribute

Stephen Letch
Contributor
October 15, 2020

Hi all

 

I have an object being used to flag when a change freeze is in effect. When the change freeze is in effect IE the Change free status attribute of the Insight object is set to Running.

 

I just need a relatively simple condition I can put in a Behaviour or a JMWE conditional validator for the Justification field to be mandatory when Change Freeze Status is Running. I'm not good with Groovy but sadly the only functionality I've found to make this work is by using groovy.

 

I got close with JMWE but I need to get the right syntax that isn't using the 'name' attribute, sadly all my testing hasn't worked.

 

I'm even find to use a JQL in a scripted condition if needs be. JQL is

"Change Freeze Status Read" in iqlFunction("\"Change Freeze Status\" = Running")

 

JMWE I'm trying to make work

If a value is not provided during the transition for field(s) Justification, show the following error: Justification is required when Change Freeze is in effectThis validation only applies if the following condition is true:1

issue.get("customfield_16277")?.any{"Change Freeze Status" == "Running"}

 

Show asterisk (*) if the condition returns true upon showing the transition screen.

0 answers

Suggest an answer

Log in or Sign up to answer