JIRA Event Listener Question

Hello - In JIRA, I can catch an issue update event, for example.  I like to know if JIRA would fire this event, only after the changes are saved to the system, or it's fired during the saving of the data.  Thanks.

2 answers

0 vote

Hello,

When you create a transition you must define the event which will fire during this transition. It a standard post function. There is also a standard post function called Update change history for an issue and store the issue in the database. If you order your event before the mentioned function then listener will fire before the issue was saved. If you order the event after the mentioned function then the listener will fire after the issue was saved

Hi Alexey - in this case, it's not in my definition in the transition.  Basically, I write a event listen plugin to catch update of an issue.  So when a user update a field in an issue, I catch that event and do something.  I want to know if the data is all saved, and the issue is indexed, before JIRA sends out that update event signal.  I think that is the case but I am not sure.

0 vote
Alexey Matveev Community Champion Nov 03, 2017

By default listener fires after the issue has been changed

That's what I thought too.

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 Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 views 4 9
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