Jira Jelly UpdateIssue on Issue manager not re indexing issue


In jelly I run a filter that selects all issues that dont have a certain field set, and then updates the field and then the issue using the issuemanager updateIssue. This works perfectly and updates the issues, however the filter that selects issues based on this issue being set does not seem to reflect the changes, almost like the issue hasnt been re indexed. According the the javadocs the updateIssue on issuemanager is supposed to do this, however it doesnt.

How can I make sure the issue after being updated is re indexed and the filters reflect the changes?

Thanks in advance, David you King if you listening please help?

1 answer

1 accepted

Try passing EventDispatchOption.ISSUE_UPDATED to the updateIssue method instead of EventDispatchOption.DO_NOT_DISPATCH. I haven't tried it myself, but I suspect that the indexer is triggered on the basis of the event being fired. I will be interested to learn if it works.

THanks David! It did the trick, the only issue is now it sends out the issue update notification even though on updateIssue i set sendEmail false. I really dont want our users to get the notifications, I am going to have to look into it.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot