I'm trying to create a transition using ScriptRunner that checks multiple Custom Fields, if any of the fields contains a value of "Yes", then the transition may continue and create the Sub-tasks.
The sample Condition below works as expected checking a single custom field for "Yes", however, I don't know the syntax to have it check multiple fields.
Working:
Did you try || operator instead of OR?
cfValues['CustomField1']?.value.contains("Yes") ||
cfValues['CustomField2']?.value.contains("Yes") ||
cfValues['CustomField3']?.value.contains("Yes")
Using || instead of OR worked perfectly. Thanks so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.