Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6761

Changes to Teams notification webhook

$
0
0

With attachments we used this one:

{
    "attachments": [
        {
            "contentType": "application/vnd.microsoft.card.adaptive",
            "content": {
                "type": "AdaptiveCard",
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "version": "1.3",
                "body": [
                    {
                        "type": "TextBlock",
                        "text": "#{ticket.title}",
                        "weight": "Bolder",
                        "size": "ExtraLarge",
                        "color": "Warning"
                    },
                    {
                        "type": "TextBlock",
                        "text": "#{notification.message}",
                        "wrap": true
                    },
                    {
                        "type": "TextBlock",
                        "text": "#{notification.changes}",
                        "wrap": true
                    },
                    {
                        "type": "TextBlock",
                        "text": "#{notification.body}",
                        "wrap": true,
                        "spacing": "ExtraLarge",
            						"size": "Default"
                    }
                ],
                "actions": [
                    {
                        "type": "Action.OpenUrl",
                        "title": "Ticket ##{ticket.number}",
                        "url": "#{notification.link}",
												"style": "positive",
            						"role": "Button"
                    }
                ]
            }
        }
    ]
}

Viewing all articles
Browse latest Browse all 6761

Trending Articles