Hi,
We are using Jenkins Office354Plugins version 5.2 to send notification to teams channel through power wenhook and we are trying to add user mentions in committers section to Teams cards.
We modified the plugin to add a forced committer (john doe in the example),
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 there a way to configure payloads so that mentions are displayed correctly in Teams, or is this not possible at all?

Report
All responses (
Answers (