Forums

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

Script Runner - SimpleScript Validator: concated expression doesn't work

Mathias Böni May 2, 2018

I have a validator that checks the following relationship between two fields:

2018-05-02_17h12_30.pngIf "Review" is set, "Reviewer" mustn't be empty. If Review isn't set, Reviewer mustn't be set,

Unfortunately, my expression in the SimpleScript Validator doesn't seem to work:

(cfValues['Review']*.value.contains("ist notwendig") && cfValues['Reviewer']) || (!cfValues['Review'] && !cfValues['Reviewer'])

BUT: I tested the expression before the OR but also the expression after the OR work for themselves and they work? Does anyone know, why the OR seems to make some trouble?

Thanks in advance

Mathias

 

0 answers

Suggest an answer

Log in or Sign up to answer