I'm integrating Jira with ServiceNow. I wrote a REST plugin that Snow calls to create or update Jira issues. On the Jira side, I have ScriptRunner listeners that react to various events to capture creation and changes to Jira issues and sends the information to Snow.
The problem is that when the REST module makes changes to the Jira issue, it triggers update and other events that cause the listeners to send the same changes back to Snow.
I've set a flag to indicate when an update has been made by the REST module so that the listener can ignore any updates made by REST. Unfortunately, the updates can trigger multiple events but only the first one is ignored using the flag.
I'm wondering if there is any way the REST module can suppress the firing of the events or if anyone can provide any other suggestions.
See if this public issue helps you :
https://jira.atlassian.com/browse/JRASERVER-34423
Regards
Prakhar
Thanks for the suggestion but unfortunately, that doesn't solve my problem. The issue you refer to above tell how to avoid sending notifications but not how to repress the triggering of event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. I see that, earlier I thought you just want to stop sending notification.
Now coming back to your problem , if JIRA REST API does not provide any way to stop sending event , then I guess you may have to write you own REST Plugin Module for JIRA.
When you do that and use updateIssue method then you can choose eventDispatchOption to stop triggering all the event.
Regards
Prakhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.