Hi guys,
I am trying to implement a custom listener with ScriptRunner and I am not able to get to the issue for which the event I'm listening to fired.
Logging with
log.debug "Event: ${event.getEventTypeId()} fired for ${event.issue} and caught by MyListener"I get the right info. The issue object, as I understand from documentation, should be accessible without declaring it. But even if I try a simple
log.debug issue.getId()
it gives me the following error in the log
'java.lang.RuntimeException: No such property: issue for class: com.custom.MyListener'
I can't figure out what I'm missing. Does someone have an idea please?
Thanks a lot