Multiple Listeners on the same event


Is it possible to have multiple listeners on the same event?

For instance, two different plug-ins include listeners to the same event such as an issue create event. Is this possible, and if so when the event occurs and the plug-in action is triggered what would be the execution order? which plug-in action takes precedence?

Any view on this would be much appreciated.


1 answer


this is definetely possible, I am already using this. After all this is what events are for, isn't it smile You can even have more than one method annotated with @EventListener in the same listener class listening to the same event class (i.e. taking the same argument).

The order on the other hand is not defined (afaik). As far as I can tell from the sourcecode events might even get invoked asynchronously. Practically I think the order is mostly defined by the order the plugins are deployed.

For multiple listener methods in one listener class the order is stable until you reload the plugin but otherwise undefined.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

31 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you