Listener is not firing comment event when issue is updated from jira Edit screen. Any workaround?

Hi All,

I have an Issue Listener implemented as a type2 plugin.

Inside Jira, If i comment& update an issue using issue edit screen, this listener fires issue updated but not commented.

If i comment & update an issue using issue resolve screen, this listener fires issue updated as wellas issue commented.

Could we have any work around here so that I could handle both comment and update in issue edit screen?

5 answers

Thanks Tibor for quick reply.

I did try it. However there is a problem there when i extract comment and process an action in issue updated event.

whats the problem?In Issue resolved screen, both issue comemnted and issue updated events are fired. Now my issue comment action is getting invoked twice!!

Hi,

JIRA does thrown both events when you enter a comment in the edit screen, however the comment is sent along the Issue Updated event in the IssueEvent object.

You can extract and process it in your event listener.

Tibor

0 vote
Timothy Chin Community Champion May 13, 2013

Did you an update to an issue in your listener? If yes, you must make sure that it does not trigger an event.

Hi Timothy,

Didnt quite get you here. Can you help me out..

"you must make sure that it does not trigger an event." How can i ensure that an event is not fired when update happens?.

Hi Timothy,

Didnt quite get you here. Can you help me out..

"you must make sure that it does not trigger an event." How can i ensure that an event is not fired when update happens?.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

809 views 2 19
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