We have a script listener that looks for a P1 ticket, and then email's us a standard email to let us know that it was been raised and the condition we use is;
cfValues['IS Priority']*.value.contains("P1")
How can I add an extra condition to this? I would like to add an extra condition that if it is a P1 and "Custom Field = Value" then send us an email. Is is possible to add two fields into a groovy condition?
did you tried like this?
cfValues['IS Priority']*.value.contains("P1") && cfValues['customfield Name'] == "Value" or cfValues['IS Priority']*.value.contains("P1") && cfValues['customfield Name'].value == "Value"
hello Ashley Powell,
check this once https://answers.atlassian.com/questions/171513/syntax-for-multiple-conditions-and-additional-actions-in-script-clones-an-issue-and-links
and
https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-ConditionTester
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.