Why is this not working :-)
I need to capture - and fire listener if:
1. Issue created and field set to "ERP"
2. Issue changes and field set to "ERP"
Code:
import com.atlassian.jira.event.issue.IssueEvent;
long EventId=event.getEventTypeId;
boolean InChange = changeItems.any
{ it.field=='DIIT Team'}
'ERP' in cfValues['DIIT Team']*.value && ( InChange || EventId.toString() == "1" )
The "getEventTypeId" fails with: No such Property - https://docs.atlassian.com/software/jira/docs/api/7.0.0/com/atlassian/jira/event/issue/IssueEvent.html