how do i specify IN operator in validating cfvalue ?

Rashi Saxena October 2, 2015

I want to check if the value for my custom field is from these 3 values : env1,env2,env3 by using script validator.

I tried this:

cfValues['Environments']*.value in ['env1', 'env2', 'env3']

But this does not work.

 

Any help will be much appreciated.

1 answer

0 votes
GabrielleJ
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.
October 2, 2015

I think you have mistaken the word "in" which is commonly used for JQL. Try this:

cfValues['My Multi Select']*.value.contains("env1") || cfValues['My Multi Select']*.value.contains("env2") 

 

Suggest an answer

Log in or Sign up to answer