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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,460,441
Community Members
 
Community Events
176
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 -> https://support.atlassian.com/opsgenie/docs/create-and-manage-global-alert-policies/

Team Alert Policy -> https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/

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.

https://support.atlassian.com/opsgenie/docs/alert-creation-flow/

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
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events