My question has multiple parts:
Thanks in advance for any help or guidance!
As per my understanding, both listeners and notifications are based on events but you cannot guarantee which one happens first because both are different threads.
If you set something in the listener, notifications might miss it. You should try setting the values in Create Post function and make sure the post function is executed before the event is thrown.
In my experience (and having had colleagues dig through the code), Jobin is exactly right - there is no "order" to listeners and events. Listeners listen, events get fired, and whichever listener happens to pick it up first runs first. I've boiled this down to the assumptions that
It's a bit like reading a newspaper - it might be printed in a specific order, but the printer has no way of forcing me to read it in that order.
I don't see how to add a Post Function for Create in JIRA 4.1. It looks maybe this is available in the Design mode in JIRA 4.4. Does that sound right?
It sounds like what I would really need to guarantee order is to create a new custom event, include that in the post functions before the generic Issue Created event and then have our plugin fire on that custom event. Does that sound correct?
Checkout http://confluence.atlassian.com/display/JIRA041/Configuring+Workflow#ConfiguringWorkflow-Addingapostfunction to find out how to add post function under Create. See the Note.
It looks like you're new here. Sign in or register to get started.