For those wanting to have notifications for individual ticket notifications (i.e. individual ticket assigned to Group, individual ticket assigned to person, etc.) into MS Teams, use the documentation listed at https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference, and use the "Card Playground" (https://messagecardplayground.azurewebsites.net/) to test your code. This was extremely helpful when setting up a card style notification into MS Teams, for notifying specific teams of tickets that were assigned to their Group/Queue, as it seems MS Teams only accepts JSON written in a specific way.
To assist with clarifying what I did...
- Created the MS Teams webhook (from MS Teams); You will need to retain a copy of the webhook link provided by MS Teams, in order to add the Extension within Zendesk; I suggest copying the details into something like Notepad.
- From Zendesk, go to the "Extensions" section, and click on "Add Target"
- Choose "HTTP" as your Target type
- The "URL" is going to be the webhook URL pulled from MS Teams (from Step 1); "Method" will be set to "POST"; "Content Type" will be set to "JSON"
- After creating your Extension, you will then want to create your Trigger. Once you have all the necessary parameters (i.e. "Meet All" and "Meet Any Conditions") setup, you will want your "Actions" section to have the "Notify Target" option (pointing to the Extension you created). Within the "JSON Body", you will specify your JSON code, which I used the above "MS DOCS" link to assist with. For my code, I used something like this:
## {
## "@context": "http://schema.org/extensions",
## "@type": "MessageCard",
## "themeColor": "ffd517",
## "title": "A ticket has been assigned to the Group",
## "summary": "Zendesk",
## "sections": [
## {
## "facts": [
## {
## "name": "Ticket ID",
## "value": "{{ticket.id}}"
## },
## {
## "name": "Ticket URL",
## "value": "{{ticket.link}}"
## }
## ]
## }
## ]
## }
I included the hash-marks, to ensure the coding didn't cause problems with this posting. This is how I was able to post details outside of the default "Ticket View" option that is natively available, while bypassing the issues I ran into with my original JSON code.
Hi Merav -
There's no out of the box integration between Gather and Teams. You may be able to configure it using the API, but we don't have anything set up for that purpose at the moment.