Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner Condition where 1 of 2 fields needs to be populated

Andrea Hakim
Contributor
April 14, 2021

In a Scriptrunner simple scripted validator, I'd like to add a condition so that either the BA or the Project Manager field is populated.  Both fields are single user fields.

 

 

1 answer

1 vote
Andrea Hakim
Contributor
April 14, 2021

I figured it out:

 

(cfValues['BA']*.name == null && cfValues['Project Manager']*.name == null ) ? false: true

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events