The following JSON is provided as the basic example in the SLA Notification provider. You can use it as it is or make further customizations to it. 


{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "size": "Large",
      "weight": "Bolder",
      "text": "$$APPLICATION$$"    //this block displays the name of application "SLA PowerBox"
    },
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "weight": "Bolder",
          "text": "$$TITLE$$" //title is taken from the Notification template
        },
        {
          "type": "TextBlock",
          "size": "Small",
          "weight": "Bolder",
          "text": "$$SUBTITLE$$" //sub-title from the Notification template
        },
        {
          "type": "TextBlock",
          "text": "$$MESSAGE$$", //message from the Notification template (including tags)
          "wrap": true
        },
        {
          "type": "ActionSet",
          "actions": [
            {
              "type": "Action.OpenUrl",
              "title": "View issue",
              "url": "$$VIEWURL$$"
            }
          ]
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5"
}        
    














SLA Notification Template view:


Summary: $$summary$$ \n
This is to inform you that the SLA has started for the issue $$key$$. \n
SLA remaining time: $$sla_remaining_time$$ \n
SLA Deadline: $$sla_deadline$$ \n
Issue Reporter: $$reporter$$    \n
Issue Assignee: $$assignee$$    \n



The adaptive card posted in MS Teams channel:


  • No labels