Scriptrunner listener - Custom Events

Eric Collins December 4, 2018

When creating a custom event, how do you distinguish between custom events? I have several custom events where the code will be very similar. 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 4, 2018

Get the name of the event out of the event data to see what the listener is responding to.

event.getEventTypeId() should give you an id of an event type, which you can then use for a "getName()" on the event type.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events