Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner listener - Custom Events

Eric Collins
Contributor
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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