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

How to delay an created alert's notification using the API?

Reetesh Sudhakar June 21, 2023

Hi, I'm wondering how I can delay the alert notification from a created alert via the API. If I create an alert using the API, is there a parameter I can pass in to only allow it to notify the responder/s by a certain time, or do I have to use the snooze alert functionality? If so, if I create an alert and then snooze it via the API, will the responder/s still get notified before the snooze alert function goes through?

1 answer

0 votes
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2023

Hey @Reetesh Sudhakar
Thanks for reaching out to Atlassian Community! 

I'm afraid that there's no way to delay notifications for a specific alert using API. What you can do instead is to use our Notifications policy and delay or snooze specific alerts. Please see - https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/ 
This has to be done manually under the team's policies or using our API here - https://docs.opsgenie.com/docs/alert-and-notification-policy-api#create-policy

I hope this helps. 

Best Regards,
Egor

Reetesh Sudhakar June 28, 2023

Hi, wanted to follow up on this. Is there a way to delay or snooze alerts that meet certain conditions if they are not team specific (a global policy)? The alerts that I'm creating with the API go out through multiple teams, so I wanted to see if there was a way to achieve this. Thanks! 

Reetesh Sudhakar June 30, 2023

Quick follow-up to that - I tried creating an alert, snoozing it, and then assigning myself as a responder using the API. Snoozing the alert should have muted the notifications, but I still kept getting them even after the alert was snoozed. Is there something that I should change in the workflow to ensure that snoozing the alert works?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events