Hi to all.
Microsoft are going to retire O365 connectors the 1st October 2024.
Jira Cloud for Microsoft Teams is based on that connectors. Do you know if a version of the app based on the Teams workflows will be released?
I Already tried to use the Teams Workflow endpoint as webhook in Jira but it doesn't work, I suppose because the payload provided by Jira Cloud wasn't managed by the workflows.
Thanks in advance for your answers
Hey Oscar,
I was having the same issue but have got it working.
You're correct, by default the payload doesn't have the correct information for Teams webhook to handle it, it has to be in a specific format for Adaptive Cards, like below.
{ "type": "Application/JSON", "attachments": [ { "contentType": "object", "content": { "type": "AdaptiveCard", "body": [ { format of card here } } } ] }
What I did was Use the Send web request connector using the webhook from Workflows and change Web request body to Custom data
Below is the exact code I used (with a few custom fields stripped out).
Microsoft has a free tool for designing Adaptive Cards that I used to generate the code, which I then added the smart values to > https://adaptivecards.io/designer
{ "type": "Application/JSON", "attachments": [ { "contentType": "object", "content": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "{{issue.key}} - {{issue.summary.jsonEncode}}" }, { "type": "TextBlock", "spacing": "None", "text": "Created {{issue.created.convertToTimeZone("Australia/Hobart").shortDateTime}}", "wrap": true }, { "type": "TextBlock", "text": "{{issue.description.jsonEncode}}", "wrap": true }, { "type": "FactSet", "facts": [ { "title": "Assignee", "value": "{{issue.assignee.displayName}}" }, { "title": "Reporter", "value": "{{issue.reporter.displayName}}" }, { "title": "Status", "value": "{{issue.status.name}}" } }, { "title": "Issue Type", "value": "{{issue.issueType.name}}" } ], "spacing": "ExtraLarge" } ], "actions": [ { "type": "Action.OpenUrl", "title": "View {{issue.key}}", "url": "https://yourtenancy.atlassian.net/browse/{{issue.key}}" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1. 4" } } ] }
I hope this helps! Thanks to this thread for getting me on the right track! >
https://community.atlassian.com/t5/Jira-Service-Management/Transition-to-MS-Teams-Workflows/qaq-p/2749257
Edit: Nearly forgot, but by default the adaptive card designer used version 1.5 of the schema (last key in the above code) but that didn't work for me, I had to use v1.4 instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.