Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to close bulk alerts in OpsGenie?

Samanta Oliveira Peixoto September 13, 2021

Is it possible to close bulk alerts via API in OpsGenie? These are alerts that have no issues in Jira.

OpsGenie can close only 200 out of 200 alerts.

1 answer

1 accepted

1 vote
Answer accepted
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2021

Hi @Samanta Oliveira Peixoto ,

 

There isn't a single API Request that can be used to close multiple alerts in Opsgenie.

However you could write a script to loop through the alerts and close them out in Opsgenie.

 

Please let me know if you have anymore questions on how you could approach this!

 

Thanks,

Samir

Samanta Oliveira Peixoto September 14, 2021

Hi,

Have a documentation of how to make this script?

Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2021

Hi @Samanta Oliveira Peixoto ,

 

Here is the documentation to the Alert API which you can leverage for this. You would want the script to List Alerts, then loop through each alert and make a Close Alert Request for each one.

 

If you reach out to Opsgenie support via support.atlassian.com, we have a utility we can run for you to close out multiple alerts if you wish.

 

Thanks,

Samir

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events