Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Automatically edit alert description before notifying

In my organisation, there are hundreds of alerts being piped into Opsgenie, from multiple systems. In many cases they include the full stacktrace error in the description, so when they appear in MS Teams, you need to scroll up for 5 minutes to start from the top.

Is there a way to have Opsgenie truncate the description field for specific errors?

(Yes, the proper fix is to amend the code which generates the alerts, however they come from multiple legacy systems, so while it will happen, it is literally months of work trying to find and understand it all. Hoping there is another solution.)

1 answer

1 vote
Darryl Lee Atlassian Team Sep 16, 2021

Hi @Mario Cappellano ,

This is Darryl, Opsgenie Support, I am here to help. 😃

Understand that you would like to alter the Alert Description upon its creation and right before it got sent to your Microsoft Teams channel.

ℹ️  Please note that it's not an alert notification, it's considered as outbound Opsgenie integration to output the alert data to Microsoft Teams via this integration.

The solution here is to leverage the Alert Policy to automatically alter the description directly onto the Opsgenie Alert upon its creation, and this change will be affecting the result sending to your Microsoft Teams.

Here I attach the links to the documentation for Global Alert Policy & Team Alert Policy for your reference:

Global Alert Policy ->

Team Alert Policy ->

The difference between these two is with the Global Alert Policy, Opsgenie will try to match every alert that is created on this Opsgenie instance; while the Team Alert Policy only concerns the alerts that go to the same team.

Please add the one that suits you and adjust the Filter and also the Alert Description on the policy.

Further for your information, here I attach the documentation for Alert Creation Flow for a better understanding of how Opsgenie creates an alert and how the alert details got altered by different factors.

Hope this helps.

Kind regards,
Darryl Lee
Opsgenie Support

Thanks Darryl. I gave that a shot, and while I can use that to remove the description entirely from a notification, I don't think I can use it to truncate a long description. In many cases I'd like to see the first couple of lines, and then ignore the rest. All good, I didn't expect the ability to be there so I'll work on plan B. 👍

Like # people like this
Darryl Lee Atlassian Team Sep 21, 2021

Hi @Mario Cappellano ,

That's awesome to know and indeed, there is no way to auto-truncate the description as Opsgenie doesn't get to understand or judge which part of the contents are needed.

We will keep improving this part of the experience.

Thanks for your feedback. 😃

Kind regards,
Darryl Lee
Opsgenie Support

Like Mario Cappellano likes this

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

163 views 1 3
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you