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
Hello,
It is not a property, it is a method that is why you should call it like this
long EventId= event.getEventTypeId()
with parenthis
What a rookie mistanke - LOL
Thanx. mate - appriciated !!
BR,
Normann
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.