How to validate multi select list field based other multi select field?

Suresh March 9, 2015

Hi Jamie,

we are using script runner plug-in and we have requirement on all transition like:   "Message Integration Change Type"(Multi select Field) is required if "Message Integration Change" (Multi select Field)is not blank.

Please let us know the script systax to add above validation.

Thanks In Advance.

Regards,

Suresh.

 

2 answers

1 accepted

1 vote
Answer accepted
JamieA
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.
March 10, 2015

Something like 

if (cfValues["Message Integration Change"]) {
    return cfValues["Message Integration Change Type"] as Boolean
}
true

but you really need to test for yourself.

0 votes
Suresh March 12, 2015

It is working.Thank you so much Jamie.

we have an one more requirement like.

1."Message Integration Change" multiselect - values are "Requested" and "Approved."

2."Message Integration Change" field value 'Approved' need to be set by only particular group.

3. When ever "Message Integration Change Type" field value is selected or changed,we need to notify mail to particular group.

4.we do not allow state transitions to "Development", "Testing", or "RCT" if the "Message Integration Change" is set to Requested.(can we show error message, while moving to those status,"Message Integration Change" is need to be set "Approve" to move forward status)

Could you help on this.

Best Regards,

Suresh

 

JamieA
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.
March 13, 2015

please ask a new question... multiple questions in the same question don't help anyone with a similar problem. thanks.

Suresh March 26, 2015

Hi Jamie, The above script error message showing on only create screen.It is not show error message on all 'Transition' Screen. Can help us show error message on all transitions? Thanks your help. Regards, Suresh

Suggest an answer

Log in or Sign up to answer