Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Define more than one value in Scriptrunner cfValues script

Robbie E Lee August 28, 2017

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

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Robbie E Lee August 28, 2017

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']
TAGS
AUG Leaders

Atlassian Community Events