alerting icon indicating copy to clipboard operation
alerting copied to clipboard

Teams alerts message preview says "Card"

Open kmcrawford opened this issue 7 months ago • 1 comments

When looking at alerts created by Grafana using Teams Adaptive Cards, the message preview shows "Card", so you have to tap into the alert to go to Teams to see what the issue is. This is even more of an issue if you get the notification on an Apple Watch.

It is believed that adding summary to NewAdaptiveCardsMessage would solve this issue.

func NewAdaptiveCardsMessage(card AdaptiveCard, summary string) AdaptiveCardsMessage {
	return AdaptiveCardsMessage{
		Attachments: []AdaptiveCardsAttachment{{
			ContentType: "application/vnd.microsoft.card.adaptive",
			Content:     card,
		}},
		Type:    "message",
		Summary: summary,
	}
}
Image

kmcrawford avatar Apr 29 '25 17:04 kmcrawford

Anyone found a way how to fix this?

manelpb avatar Jun 01 '25 19:06 manelpb