Hi, I've created plugin with eventPublisher, I've registered listener with eventPublisher.register(this) but I've forgot to unregister it (eventPublisher.unregister). Than I've installed/uninstalled plugin several times and as expected listeners were not unregistered.
Is there any way to unregister this listener without Jira restart?
Thanks in advance.
When you register the same listener (i.e. with the same key), it unregisters the existing one before the new one is registered. So you must have only one listener in place.
If you add the unregister code and uninstall the plugin, that will remove the listener.
I've added unregister code to my class, uninstalled previos plugin version, installed new version with unregister code, and uninstalled it (performed several times) but it seems that previos listener is still active because it executes the code which is implemented in the previos plugin version :(
I haven't changed any code in atlassian-plugin.xml so the key should be the same...
I'm doing that on a standalone jira, but you've adviced me a very useful thing :) I've added unregisterAll before registering listener, installed plugin and all incorrect listeners were successfully removed, so I've removed this unregisterAll and re-installed plugin and now everything is cool :) Thank you very much and sorry for my english!
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
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!
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