Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,755
Community Members
 
Community Events
168
Community Groups

Define more than one value in Scriptrunner cfValues script

Edited

I have a custom checkbox field called Communicate to client? When this field is set to Yes, I want two other fields to be required:

  • Release Notes
  • Test Steps

Is it possible to require two fields?

cfValues['Communicate to Client?']*.value.contains("Yes) || cfValues['Release Notes','Test Steps']

What would the notation be?

1 answer

1 accepted

0 votes
Answer accepted

Looks like I need to add a validator entry for each field and correct my syntax to:

cfValues['Communicate to Client?']?.value == "Yes" || cfValues['Release Notes']

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events