JIRA Server 6.3.10 ScriptRunner 4.1.3.15
We wanted to do a simple script validation for the following
1) if the value of a multi-select field FieldMS is 'Yes' then a single select field FieldSS cannot be empty
2) if the value of a multi-select field FieldMS is 'Yes' then another multi select field FieldOMS cannot be empty
We tried
for point 1 - !cfValues['FieldMS']*.value.contains("Yes") || cfValues['FieldSS']for point 2 - !cfValues['FieldMS']*.value.contains("Yes") || cfValues['FieldOMS']It works if value 'Yes' is chosen and dependent field is empty but unfortunately even if the FieldMS is empty validations are triggered which should not be the case.
Tried with
!('Yes' in cfValues['FieldMS']*.value) || cfValues['FieldSS'] but not working.Any ideas?