O365 connectors within Teams will be deprecated
Asked by Seb Coleman-Celis:

Had the following message in Teams:

**Action Required:** O365 connectors within Teams will be deprecated and notifications from this service will stop. [Learn more](https://aka.ms/O365ConnectorDeprecation) about the timing and how the Workflows app provides a more flexible and secure experience. If you want to continue receiving these types of messages, you can use a workflow to post messages from a webhook request. [Set up workflow](https://teams.microsoft.com/l/task/c3a1996d-db0f-4857-a6ea-7aabf0266b00?url=https://make.powerautomate.com/teams/store/flowCreation?templateId=d271a6f01c2545a28348d8f2cddf4c8f)

Tried switching the webhook in the Send message to Teams automation with a new Workflows webhook but that didn't work.   

Will the Send message to Teams automation be updated to work with Workflows?


Answers:
author: adamru
body: Atlassian has created a bug. If you haven't already add yourself to the bug and vote for it.  

[\[AUTO-1374\] Provide support for Microsoft Workflows in automation rules - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/AUTO-1374)


author: Britta Neugebauer _yasoon_
body: Hello there,

After lurking on this conversation for a while, I have a suggestion for you on how to deal with the retirement of the O365 connectors.

I work at yasoon, an Atlassian Marketplace Platinum Partner. Our focus is to provide applications that deeply integrate Jira and Microsoft 365. So this topic is part of our everyday life and that's why I felt called to share this video with you:

[?? Jira automation: How to deal with the retirement of Office 365 connectors within Microsoft Teams (youtube.com)](https://www.youtube.com/watch?v=2PDvEC9bnQ4)

For simple requirements, the official Microsoft Teams integration for Jira Cloud by Atlassian is enough for you. Otherwise you can work with [Microsoft 365 for Jira - Outlook Email, Teams, Calendar \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1213138/microsoft-365-for-jira-outlook-email-teams-calendar?hosting=cloud&tab=overview). In the video we're showing you how to set up basic and advanced automations with Microsoft and Jira. Hope it helps.

Happy Friday!

comments: author: John Barrett
body: This worked for me, I didn't get very many options but its works for simple rules and triggers, so kudo's for getting something. I have to play around with it some more. I'd suggest setting up the connection via a service account rather than individual account, think it would be hard to track something like this down if the person who set it up left or locked out their account :-)   


author: Iain Whyte
body: Will stop working 1st October (!)
> We will gradually roll out this change in waves:

*
  > Wave 1 -- effective August 15th, 2024: All new Connector creation will be blocked within all clouds
*
  > Wave 2 -- effective October 1st, 2024: All connectors within all clouds will stop working

from <https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/>

\*gets popcorn\* Atlassian does great with short timelines...

comments: author: Boris Zozoulia
body: :P


author: Dan Driscoll
body: Right I also don't want to have to take a course in Workflows. I just want a list of simple steps to take to convert my existing Jira Automation rules notifications. Swapping in the new Workflow generated webhook URL seemed almost too simple, and indeed does not work. Anyone know the steps? Or definitively if there is something Atlassian must do first?


author: adamru
body: I have logged a support ticket so will find out in the near future


author: Boris Zozoulia
body: it does not look like the default O365 integration format is compatible with proposed workflows, as the Workflows json payload contains a whole bunch of auxiliary fields (refer to the Json schema of this payload below, where the actual content is represented by the attachments, which follow a so called "adaptive card format" in teams.  

So, that would need to be rejigged by atlassian folks  

```


{
  "type": "Request",
  "kind": "TeamsWebhook",
  "inputs": {
    "triggerAuthenticationType": "All",
    "schema": {
     "type": "object",
       "properties": {
        "type": {
          "type": "string"
         },
        "attachments": {
          "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "contentType": {
                  "type": "string"
                 },
                "content": {
                  "type": "object",
                   "properties": {
                     "$schema": {
                        "type": "string"
                      },
                     "type": {
                       "type": "string"
                     },
                     "version": {
                        "type": "string"
                     },
                     "body": {
                       "type": "array",
                       "items": {
                        "type": "object",
                         "properties": {
                           "type": {
                             "type": "string"
                            }
                          },
                          "required": ["type"]
                        }
                      }
                    }
                  }
                },
                "required": ["contentType", "content"]
              }
            }
          }
        }
      },
   "metadata": {}
}

```


author: Iain Whyte
body: Dan, unfortunately MS in their infinite wisdom have changed the JSON POST body entirely, so it's not a direct swap of the Webhooks URL. It needs to be reworked and includes AdaptiveCard format inside the Teams wrapper. Looks like it will take a few hours to swap over my other internal stuff :(

An even bigger problem is its ugly AF. Has a bunch of extraneous crap on the top of the card and inside it, and posts as the 'User' that created the workflow. Yuck Yuck Yuck.

![Screenshot 2024-07-11 at 09.40.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/334822i39BBBB3AA46508FC/image-size/large?v=v2&px=999 "Screenshot 2024-07-11 at 09.40.34.png")


author: Julien Drape
body: Hi

[@Iain Whyte](/t5/user/viewprofilepage/user-id/1372442) : as everyone here, i'm trying to use Workflow but with no success... How did you get that ? Did you modify the Webhook body or configure the Adaptive card Parameters ?   
Is it please possible to share your solution (even if for now it's not optimum) ?  

Thanks


author: Stephanie Paddock
body: Having the same problem. Connectors worked great and was our solution. I foolishly switched when the message told me to and now all my stuff is broken. I'm an idiot sitting here hoping either a) someone has a solution or b) Atlassian fixes their output, because otherwise I'm cooked.


author: Iain Whyte
body: <https://learn.microsoft.com/en-us/connectors/teams/?tabs=text1#microsoft-teams-webhook> has an example, that, amazingly doesn't work without changes.

Setup a new workflow in a channel, use the "Post to a channel when a webhook request is received" template. Record the Webhook URL that is provided.

Then in POSTMAN to test, this is a working raw POST body against the Webhook URL (fixed up version of the JSON given in the MS website above):

```

 {
"type":"message",
"attachments":[
{
"contentType":"application/vnd.microsoft.card.adaptive",
"contentUrl":null,
"content":{
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
"type":"AdaptiveCard",
"version":"1.2",
"body":[
{
"type": "TextBlock",
"text": "testing notification"
}
]
}
}
]
}
```


author: Stephanie Paddock
body: Yeah, I figured the issue was with the payload based on the errors PowerAutomate threw.

One of my solutions I've cooked up a workaround on. The other I'm at a loss. Here's hoping Atlassian plays catch up.


author: Stephanie Paddock
body: Okay, after reading some wonderful responses here, I cooked up a very awful fix until we get a real one from Atlassian.  

I'm using the webhook Automation (NOT Teams) to post to the Teams PowerAutomate Webhook template.   

Then, because I do not personally want or like the Adaptive Cards (our use case has us copying the relayed message in Teams to other locations inside Teams, and Adaptive Cards do not copy and paste well), I load the JSON schema into the "Parse JSON" action, initialize a string variable, and spit it all back out as plain text (I include some HTML formatting in my initial JSON payload so everything looks nice in the end).   

I don't know if I need to do this! But I'm just trying to get something to work and it's working!   

Here's what my dumb thing looks like for anyone else who might find this useful.   

I want to stress again, though, that I have no idea what I'm doing and am doing the absolute bare minimum to keep everything moving along until something better comes along.

![Screenshot 2024-07-15 161424.png](https://community.atlassian.com/t5/image/serverpage/image-id/335760iA2469A26DE35D788/image-dimensions/246x681?v=v2 "Screenshot 2024-07-15 161424.png")  


author: Mathias Boer-Mah
body: Hi

See my proposed solution in this thread - It works but requires you to use web hooks in jira instead of the teams integration

[Transition to MS Teams Workflows](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.atlassian.com%2Ft5%2FJira-Service-Management%2FTransition-to-MS-Teams-Workflows%2Fqaq-p%2F2749257%3Futm_source%3Datlcomm%26utm_medium%3Demail%26utm_campaign%3Dkudos_answer%26utm_content%3Dtopic&data=05%7C02%7Cmathias.boermah%40pernod-ricard.com%7Cc6c964b3c0b549ab5ef008dca1994060%7C933c9cbe35d34416abbdddd1bca5879c%7C0%7C0%7C638562926787960405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=BkggGwIbKfcSNTTENxbqX88KH%2FPnNVE1E9oBmzlhVBk%3D&reserved=0)

Good for a last resort if Atlassian do not fix the output format in time

Cheers

Matt

comments: author: John Barrett
body: From what I read about the Microsoft connectors with webhooks is they are also being shut down. Could be wrong, but I think the idea from MS about them is that they are unsecure and not as scalable. Not sure I agree with MS but I don' think webhooks will work after Oct 1st.


author: Mathias Boer-Mah
body: This is using the same webhook that is created when you follow microsofts steps to use the alternate workflow to replace the connectors. So no, webhooks are not being shut down - at least not in the near future..


author: adamru
body: In case anyone missed it...  

From Microsoft

***Update 07/23/2024:*** **We understand and appreciate the feedback that customers have shared with us regarding the timeline provided for the migration from Office 365 connectors. We have extended the retirement timeline through December 2025 to provide ample time to migrate to another solution such as Power Automate, an app within Microsoft Teams, or Microsoft Graph. Please see below for more information about the extension:**  
* **All ++existing++ connectors within all clouds will continue to work until December 2025, however using connectors beyond ++December 31, 2024++ will require additional action.**
  * **Connector owners will be required to update the respective URL to post by December 31st, 2024. At least 90 days prior to the December 31, 2024 deadline, we will send further guidance about making this URL update. If the URL is not updated by December 31, 2024 the connector will stop working. This is due to further service hardening updates being implemented for Office 365 connectors in alignment with Microsoft's [Secure Future Initiative](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblogs.microsoft.com%2Fblog%2F2024%2F05%2F03%2Fprioritizing-security-above-all-else%2F&data=05%7C02%7Ccorod%40microsoft.com%7C71e92e323f444d42052908dcab250016%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638573422643573405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=8ysR7N%2BHauiZ1v3k5KI8Hpv8g9cYm4s5z1BxLnJE23U%3D&reserved=0)**
* **Starting August 15th, 2024 all ++new++ creations should be created using the Workflows app in Microsoft Teams**


author: Yatish Madhav
body: Hi - thanks for this post and the answers. Either I am very confused or it is just not clear ... Is this deprecation relating to

* Webhooks on Atlassian with Teams,
* Webhooks on Teams,
* Teams apps (in groups or Team chats) linked to Atlassian,
* Automation rules in Jira linked to Teams, or
* something else?

Apologies if this has been answered before. I am just trying to identify the impact and see every place this would have effect on and, in turn, needs fixing/amendments to limit or stop disruption.

I don't know exactly what all of our users do on Teams and Jira to be able to clearly manage this :(

Any help on this comment would be greatly appreciated :)

Thank you


author: T?th Kriszti?n
body: If you need Microsoft Teams notifications of newly created/updated/commented tickets from Jira Service Management, you can use the following method:

1. Add the Jira Cloud application to the required Microsoft Teams team / channel:  
   Teams -\> Apps -\> Search for Jira Cloud -\> Add -\> Select Team (you will need a Jira Admin account to authenticate)
2. Go to your JSM project settings and look for Microsoft Teams Integrations (at the bottom)
3. Select Team and Channel and add a new connection


author: Move Work Forward
body: Guys,

There is a simpler way to use Microsoft Teams Workflows app to get messages into [Jira](https://youtu.be/KLhOYe0TaOE), [Confluence](https://www.youtube.com/watch?v=A4E8rx5gu94) and [Bitbucket](https://www.youtube.com/watch?v=3R_r2MpKtUU).

Cheers,  
Leo

comments: author: John Barrett
body: Leo, the issue is that webhooks are being depreciated, they work now, but come Oct 1st they won't. MS will stop allowing new Webhooks and O365 connections by Aug 1st


author: Stephanie Paddock
body: I would love to contemplate switching to a fabulous addon that does stuff better, but unfortunately M$ isn't giving me the 3-6 months my company requires to get security and legal evaluation -- not to mention secure budget -- for replacements. Also, I have better things to be doing than dealing with this crisis right now.  

This is my reality, and probably others, and why we're panicking.


author: Adam Brunt
body: [@Iain Whyte](/t5/user/viewprofilepage/user-id/1372442) the reason you are getting the "ugly AF" stuff wrapped around the card is because you used the "Post to a channel when a webhook request is received" **template.**

If you don't use a template but, instead, create a workflow from scratch - that does exactly the same as what your current flow does - then you don't get the rubbish content

comments: author: Iain Whyte
body: Hi [@Adam Brunt](/t5/user/viewprofilepage/user-id/5152789) thanks, I hadn't considered this. I will give it a try.


author: Iain Whyte
body: <https://docs.hetrixtools.com/microsoft-teams-how-to-remove-name-used-a-workflow-template-to-send-this-card-get-template/> covers this nicely. To say this was non-obvious doesn't begin to cover it.


Tags: cloud

jira-cloud

ms-teams