I have a question about developing a custom JIRA listener. So the below is a tutorial on how to create a listener. How do I tie it to a custom event?
Community moderators have prevented the ability to post new answers.
not able to fire the event.jobin could u please help me.i m using 6.1.7 version.i have created the listener.but dont know hoe to dispatch the event
You will have to check for the id of the custom event you created in the onIssueEvent method.
if (eventTypeId.equals(new Long("your_event_id"))) { // do your stuff
}
your_long_id is the id of th custom event which you can find on the URL if you edit the event or from the database!
|
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean? The above code is in the listener plugin. Are you instead looking to fire a custom event from here? If so, use IssueEventDispatcher : http://docs.atlassian.com/jira/latest/com/atlassian/jira/event/issue/IssueEventDispatcher.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jobin, could you provde some sample code for IssueEventDispatcher? Again, my application is like this:
I have a custom event called SendEmail. I create a custom plugin triger to detect an update condition. When it is met, the plugin will fire this SendEmail event, which is tired to a notification scheme to send out some notificaiton.
Thanks for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yup, thats how you do it.
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.