Hi
I am attempting to create a fast track script listener that will change the status of a job when the following conditions are met:
I am struggling with this and have only managed to come up with the following:
(cfValues['Client']?.value == 'ClientName')&&((issue.reporter.name == ('User1')) xor (issue.reporter.name == ('User2')) xor (issue.reporter.name == ('User3')) xor (issue.reporter.name == ('User4')))
Every single time I attempt to trigger these conditions the error logs keep reporting the following:
[groovy.canned.utils.ConditionUtils] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script32.groovy: 1: expecting ')', found 'xor' @ line 1, column 94.
== ('ClientName') xor (issue.
^
1 error
Any help on this would be greatly appreciated. I believe it is just the way I have the syntax configured.
Thanks
Adam
"Exclusive or" is the caret ( ^ ) symbol - see http://groovy-lang.org/operators.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.