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

How to get closed state alert by alias?

Shahanawaj Mulla September 26, 2023

I am trying to get an alert by alias but the alert status is closed. So  I am getting the following response 


{
"code": 40401,
"message": "Alert with alias [f552cfaa-e28d-40d6-86b4-86b80335d3c6] not found.",
"took": 0.002,
"requestId": "2b49b30b-7c94-428a-8d41-aae729efb2ba"
}





1 answer

1 accepted

1 vote
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2023

Hi @Shahanawaj Mulla ,

It's unfortunately not possible as stated at the Get Alert section here:

get1.jpg

Shahanawaj Mulla September 26, 2023

Any other way to get closed alerts 

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2023

You could list closed alerts using a URL like this: 

https://api.opsgenie.com/v2/alerts?query=status%3A%20closed

The alert's ID and tiny ID should be returned. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events