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

0 votes


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.

0 votes

How do you reindex? Provide your code

boolean bWasIndexing = ImportUtils.isIndexIssues();

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

886 views 3 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