Hi, I have written a behavior script to authenticate options selected in a Multi Check box field , on the create issue screen. It does not seem to be working:
FormField testCheck = getFieldById ("customfield_23350") // id for Test Check Box Field
FormField tType = getFieldById ("customfield_22150") // id for Field 1
FormField type = getFieldById ("customfield_15551") // Field 2
List <String> checkList = testCheck.getValue()
switch(checkList)
{
case ['36000']: // Id of check box option 1
tType.setHidden(true);
break
case ['36000','36001']: //Ids of 2 options in the check box field
type.setHidden(true);
break
}
Please help
Answered here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.