In the "Send message to Microsoft Teams" action, I would like to have posts made by Incoming Webhook mentioned to the Teams group. Is there a way to do this?
If you simply add "@ (group name)" to the text of the message, the mention function will not work and it will be posted as just a string of characters.
Is there an input format that works with the mention function?
I would like to avoid methods such as configuring personal settings to notify each post, or using Workflow to trigger an action separately from the post itself.
Hi @TCIJ-Kenta Kanno , and welcome to the Atlassian Community Forums!
From what I can tell, there is no default way to handle this in Jira.
Three options to work-around this, and none are simple...
A Community Forums message where Jean Innes shared a solution: https://community.atlassian.com/t5/Jira-Software-questions/Jira-notification-feed-into-Microsoft-Teams-channel/qaq-p/1963289
Use Microsoft Power Automate. You can create a power automate flow that triggers based on a webhook request from Jira. Within Jira, an automation rule can call the Power Automate webhook when certain conditions are met. The Power Automate Flow can parse the incoming data from Jira to construct the message for Teams. Within Power Automate you can use the "Post a message (V3)" which supports mentions for teams and individuals.
Or, try the Teams connector "adaptive cards". More info here: https://learn.microsoft.com/en-us/power-automate/overview-adaptive-cards and also mentioned on this Atlassian blog post: https://www.atlassian.com/blog/halp/ms-teams-atlassian-apps
Hi @Christopher Maxwell , I appreciate your answer.
I read 'how to" shared by Jean Innes, but I couldn't recognize any factors in it that can really sends notification to all teams members.
It looked just like how to send a post to Teams from Jira.
And to solve this matter by using Power Automate, each members need to activate Power Automate.
This solution can be effected by users situation, so unpredicted escape can be happened.
Anyway, I understood there is no way to directly add mention function in posts in Teams sent from Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @TCIJ-Kenta Kanno Thanks for replying and sharing the additional information. That's helpful for anyone else researching this issue, too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if you finally got it done, I archived it with getting inspired by Jean Innes' sharing
And here is the body for your reference:
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "<at>{{issue.fields.Assignee-QA.displayName}}</at>, a Jira issue is 'Ready for QA'! See [{{issue.key}}](https://your server name here/jira/browse/{{issue.key}})"
},
{
"type": "TextBlock",
"text": "**Issue Summary:** {{issue.summary}}",
"wrap": true
},
{
"type": "TextBlock",
"text": "**Issue Type:** {{issue.issueType.name}}",
"wrap": true
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>{{issue.fields.Assignee-QA.displayName}}</at>",
"mentioned": {
"id": "{{issue.fields.Assignee-QA}}",
"name": "{{issue.fields.Assignee-QA.displayName}}"
}
}
]
}
}
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.