Hello,
I have Jira 6.3.5 with Script Runner 3.0.6
Script Listeners - Send a custom email
Events: Issue Closed
Conditions -
issue.subTasks.size() > 2
issue.labels.any{it.label=='NewHire'}
issue.parentObject?.subTaskObjects?.every{it.resolution}
The problem is that the labels condition is not working (issue.labels.any{it.label=='NewHire'}).
It is sending and email regardless of the labels, the email need to be sent only if it matches that of a NewHire label.
Any idea why it is ignoring the labels condition?
Thanks in advance.