Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events