Dear colleagues, I would like to write an Adaptavist script that sends an eMail notification whenever any issue in a project reaches a well known state. I'm using a "Listener" for this, bound to the "Any Issue Event" event in the respective project.
Success so far:
Sending eMail on any issue event with $issue.key etc. values in eMail text
Send eMail only if issue in status "blah". Condition: issue.status.simpleStatus.name == 'blah' (I omit the ?. operator on purpose because issues are supposed to have a status).
The Problem:
No success (eMail does never get fired): originalIssue.status.simpleStatus.name != 'blah' && issue.status.simpleStatus.name == 'blah'
What do I do wrong? Any help welcome