Садржај Microsoft Teams повратног позива¶
Microsoft повлачи своје Office 365 конекторе у корист повезивања алата треће стране преко своји Workflows. Услед овога, предефинисани повратни позив у Zammad-у је измењен. У случају да су вам потребне вредности старог и новог подразумеваног садржаја, можете их пронаћи испод.
Садржај за Office конекторе (стари)¶
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "#{ticket.current_state_color}",
"title": "#{ticket.title}",
"text": "#{notification.message}",
"sections": [
{
"text": "#{notification.changes}"
},
{
"text": "#{notification.body}"
}
],
"potentialAction": [
{
"targets": [
{
"os": "default",
"uri": "#{notification.link}"
}
],
"@type": "OpenUri",
"name": "Ticket##{ticket.number}"
}
]
}
Садржај за Worfklows (нови)¶
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "#{ticket.title}",
"color": "#{ticket.current_state_color}",
"weight": "bolder",
"size": "large",
"wrap": true
},
{
"type": "TextBlock",
"text": "#{notification.changes}",
"wrap": true
},
{
"type": "TextBlock",
"text": "#{notification.body}",
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.OpenUrl",
"title": "#{config.ticket_hook}#{ticket.number}",
"url": "#{notification.link}"
}
]
}
]
}
}
]
}