Multi Check Box Field Behavior Script

Hemanshu Sood July 30, 2018

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

1 answer

0 votes
Mark Markov
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.
July 31, 2018

Answered here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events