-
-
Notifications
You must be signed in to change notification settings - Fork 90
Description
We are using version 5.2 and are trying to add user mentions to Teams cards.
We modified the plugin to add a forced committer (john doe in the example) using TeamsMentionHelper,
but the mention tag does not appear in Teams even though the JSON payload is generated correctly.
Current payload structure:
=== WEBHOOK DEBUG START ===
Payload JSON:
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"msTeams": {
"width": "Full",
"entities": [
{
"type": "mention",
"text": "\u003cat\u003eJohn Doe\u003c/at\u003e",
"mentioned": {
"id": "john.doe",
"name": "John Doe"
}
}
]
},
"body": [
{
"text": "sandbox » ♣ Build Daily - main: Build CL 1700303 [#358] Repeated Failure",
"weight": "bolder",
"size": "large",
"color": "attention",
"type": "TextBlock",
"wrap": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"text": "Notification from UE5 » sandbox » ♣ Build Daily \- main: Repeated Failure",
"weight": "bolder",
"size": "default",
"color": "default",
"type": "TextBlock",
"wrap": true
},
{
"text": "Latest status of build CL 1700303 [#358]",
"weight": "default",
"size": "default",
"color": "default",
"type": "TextBlock",
"wrap": true
}
]
}
],
"width": "stretch"
},
{
"facts": [
{
"title": "Status",
"value": "Repeated Failure"
},
{
"title": "Failing since",
"value": "build #343"
},
{
"title": "Remarks",
"value": "Started by user John Doe. Rebuilds build #357."
},
{
"title": "Committers",
"value": "John Doe \u003cjohn.doe@milestone.it\u003e"
}
],
"type": "FactSet"
},
{
"text": "Committers: \u003cat\u003eJohn Doe\u003c/at\u003e",
"weight": "default",
"size": "default",
"color": "default",
"type": "TextBlock",
"wrap": true
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "View Build",
"url": "http://xxx"
}
]
}
}
]
}
=== WEBHOOK DEBUG END ===
Expected behavior: the user should appear as @mention in Teams.
Is this feature supported by the plugin, do we need to configure something in Teams/Power Automate, or is it not possible at all?