How to close Opsgenie alert when corresponding JSM issue is deleted



Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.




Purpose

This knowledge base article will illustrate how to close the Opsgenie alert when the corresponding issue is deleted. The reason to develop this workaround is that as of now Jira doesn't send any information to the Opsgenie in case of issue deleted event is fired.

 Solution

Please follow the steps below to build the solution.

  • Modify the corresponding workflow and add a new status. Name it something like delete issue. This status should be reachable from all the statuses.


  • When the issue will transition to the new status, it will fire an issue updated event that you can catch in the opsgenie and close the alert. Configure the integration as shown below.



  • Build an automation based on the trigger when issue transitioned. This rule deletes the issue as soon as the issue is transitioned to the status.



Last modified on Sep 29, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.