How to mention when posting to Teams by Jira Project automation

TCIJ-Kenta Kanno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 11, 2024

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.

1 answer

1 accepted

0 votes
Answer accepted
Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

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

 

TCIJ-Kenta Kanno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2024

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.

Like # people like this
Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

Hi @TCIJ-Kenta Kanno  Thanks for replying and sharing the additional information. That's helpful for anyone else researching this issue, too.

Haobo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2024

@TCIJ-Kenta Kanno 

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}}"
}
}
]
}
}
}
]
}

Like TCIJ-Kenta Kanno likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events