Dear Community,
I've tried to create the validator (I' need to use Simple scripted Validator), where error message pop up when issue type is Story and Severity value is Not Analysed.
I've put in Condition:
!issue.get("issuetype").name ["Story"] && cfValues['Severity']?.value != "Not Analysed"
The second part works fine by it selves:
cfValues['Severity']?.value != "Not Analysed"
Error message pop up only when Severity is Not Analysed.
Can someone give an advice how to combine those two conditions correctly?
Regards
Hi
Try the syntax
issue.issueType.name != "Story"
Thank you Tom,
that was very helpful!
Actually it works with or || not with and &&:
issue.issueType.name != "Story" || cfValues['Severity']?.value != "Not Analysed"
Regards,
Dagmara
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.