Subscribing to Asynchronous events

Hi,

I am looking for a way to get notified when something changes in Jira. For exaple:
We have a project in Jira and i wan to know when a ticket changes state e.g. from development to code review.
Ideally this should be available via asynchronous events in order to be efficient and also put this information in a Kafka topic for others to consume.
Is this possible?

You can achieve this by creating a plugin the uses Atlassian event library as described in this tutorial:
https://developer.atlassian.com/server/jira/platform/writing-jira-event-listeners-with-the-atlassian-event-library/

You can view some of the events you can listen to here: Jira Event Javadoc

By default these events are synchronous, so you have to raise a new event with the @AsynchronousPreferred annotation as described in this tutorial: https://bitbucket.org/atlassianlabs/async-events-tutorial

Then when you receive your own asynchronous event, you can call whatever external system you would like from within your event listener code.

Hope that answers your question.

1 Like