We have a requirement where in alerts will be created via email integration in Opsgenie when some service is down and once the service is back it will trigger another email and it will have something in the email body saying the status is ok. So can we match this and close the alert automatically in Opsgenie.
I tried all the options to match text in Subject, Message in Advanced option in integration but no luck, it keeps on adding the ticket count instead of closing it.
Hi @Chethan GR ,
This use case is certainly possible! It's all dependent on the alias field - or the alert's unique identifier - of both the create and close alerts.
In order for the integration to close an alert, it needs to find an open existing Opsgenie alert with a matching alias. You can define what data parsed in the alias field of both actions - but again, the key is they need to match.
Here's a very basic example:
Hope this helps! Here's a few other documents customers leverage to help customize what data parses in the alias or other alert fields:
Let us know if you have any additional questions.
Hi @Chethan GR ,
That setup looks good - so I have to assume the second email is in fact containing "Down" in the subject - which is why it's deduplicating.
If that's the case then the alert will continue to use that action since it matches. You need to filter on something that does not match the Create Alert action's filter - and has the opportunity to review the Close Alert action.
Otherwise, the alerts will continue to deduplicate like this.
What do you mean "adding to the ticket count"? Adding new messages via deduplication (I assume).
You would need to match your close criteria and then create a Close action in the integration, rather than under the Create Alert tab. Even with that, its still not working?
We launched the first version of the Incident investigation view in April of 2020 for Bitbucket Pipelines. Shortly after that, we added the ability to investigate deployment-related incidents in Opsg...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event