JIRA event listener not quite catching the event from workflow transition

I have an event listener plugin that works well to capture the events from issue edit.  However, when I leverage the workflow transition screen to update a field, it seems like this issue event is captured but things not working properly.  I observe that the block of code is called inside the listener plugin, but not each line of code is executed.  Does anyone has this issue?

2 answers

This widget could not be displayed.
Alexey Matveev Community Champion Nov 04, 2017


When you update a field in a transition it is not the same as you update a field on the edit screen. When you edit a field on the edit screen the issue updated event is generated. In a transition you define yourself what kind of event will be generated. It can be the issue update event,  it can be generic event,  it can be your custom event. You define it in the post functions of the transition.  That is why have a look what kind of event your transition generates. If it does not explain the behaviour of your listener then provide your code and the type of the event generated by your transition. 

Hi Alexey - I did not modify the list of in the post function for such transition.  The end of the list is to trigger a generic event.  I captured the issue generic event to do the processing and have the above-mentioned problem.  I event changed the last item in the list to trigger an issue update event, and still same problem.  All in all, my plugin is able to capture the trigger (I did some debugging to confirm this), but the processing is not done entirely.  For example, in one of the steps, I reindex this JIRA issue, and it's not being executed, where, when there's an update directly from the edit screen, all steps are processed.

This widget could not be displayed.
Alexey Matveev Community Champion Nov 06, 2017

How do you reindex? Provide your code

boolean bWasIndexing = ImportUtils.isIndexIssues();

Alexey Matveev Community Champion Nov 06, 2017

You said you have a plugin. I just had a look at my code. I do it the following way:

I import  IssueIndexManager component to the constructor of the listener and then if I need to do a reindex, I just execute the following line:


 It works for me. I can not see much difference with your code. There must be something else in your code.

They will both work. Again, when the trigger is from the issue edit, everything works fine, and I have same code for both events.  It's just when the update comes from the transition, and this line of code is not executed, while other code got executed.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

535 views 23 15
Join discussion

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