Scriptrunner: Validate Multi-Select List Does NOT Contain a Value

Dorian Workman April 28, 2020

Hi all

I have a multi-select list custom field that has a default value of 'Please select...'.  I am trying to add a validator on a workflow transition to check that the user has not left the 'Please select' value in the field.  I can get the positive case to work as follows:

'Please select...' in cfValues['Fund(s)']*.value

But I can't get the negative case to work, i.e. Please select... is NOT in the field.

Any help please?

Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Dorian Workman April 28, 2020

Got it:

!(cfValues['Fund(s)']*.value.contains("Please select..."))

Suggest an answer

Log in or Sign up to answer