The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong EventType on IssueEvent

Ricardo Herrera
December 5, 2019

Hello Community, I have an IssueEvent listener on my plugin and works well for getting notification when an issue is either created, updated or deleted. However, I've noticed that if I reopen the issue the EventType constant I receive is not EventType.ISSUE_REOPENED_ID but EventType.ISSUE_GENERICEVENT_ID instead; this same event type is the one I get if I start or stop progress. Is this the intended behavior? My Jira server version is 7.13.3.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jack Nolddor [Sweet Bananas]
Atlassian Partner
December 5, 2019

Hi Ricardo,

By default any transition throws the EventType.ISSUE_GENERICEVENT_ID but this can be mofied.

To fix your problem, please edit the Reopen transition and the set up the correct event in the Fired Event Postfunction as per documentation

https://confluence.atlassian.com/adminjiraserver073/advanced-workflow-configuration-861253591.html#Advancedworkflowconfiguration-notificationsUsingapostfunctiontosendemailnotifications

 

Regards

Ricardo Herrera
December 5, 2019
Jack Nolddor [Sweet Bananas]
Atlassian Partner
December 6, 2019

You are welcome :D