Adaptive card that works in Teams bot Desktop is not working in Mobile

RajeshPandian 25 Reputation points
2024-07-09T05:26:46.55+00:00

The following adaptive card is displayed perfectly in Teams Desktop App and in browser. But not working in mobile:

{
        "type": "AdaptiveCard",
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "version": "1.6",
        "msteams": { "width": "full" },
        "body": [
          {
            "type": "TextBlock",
            "text": "ADO Task Details",
            "weight": "Bolder",
            "size": "Medium",
            "wrap": true,
            "horizontalAlignment": "Center",

          },
          {
            "type": "Table",
            "columns": [
              {
                "width": "0.5"
              },
              {
                "width": "2"
              },
              {
                "width": "2"
              },
              {
                "width": "0.5"
              },
              {
                "width": "2"
              }
            ],
            "rows": [
              {
                "type": "TableRow",
                
                "cells": [
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Key",
                        "weight": "Bolder",
                        "wrap": true,
                      }
                    ]
                  }
                ]
              }
            ]

        },
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Summary",
                        "weight": "Bolder",
                        "wrap": true,
                      }
                    ]
                  }
                ]
              }
            ]

        },
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Project",
                        "weight": "Bolder",
                        "wrap": true,
                      }
                    ]
                  }
                          ]
                        }
                      ]

                  },
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Status",
                        "weight": "Bolder",
                        "wrap": true,
                      }
                    ]
                  }
                ]
              }
            ]

        },
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Comments",
                        "weight": "Bolder",
                        "wrap": true,
                      }
                    ]
                  }
                ]
              }
            ]

        }]},
              ...issues.slice(0,20).map(issue => ({
                "type": "TableRow",
                "cells": 
                  [{
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": issue.key,
                        "wrap": true
                      }
                    ]
                  }]}]},
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": issue.summary,
                        "wrap": true
                      }
                    ]
                  }]}]},
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": issue.project,
                        "wrap": true
                      }
                    ]
                  }]}]},
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": issue.status,
                        "wrap": true
                      }
                    ]
                  }]}]},
                  {
                    "type": "TableCell",
                    "items": [
                      {
                          "type": "ColumnSet",
                          "columns": [
                              {
                                  "type": "Column",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": issue.comments || "No comments",
                        "wrap": true
                      }
                    ]
                  }]}]}]}))],
            "showGridLines": true,
            
          }
        ]
      };
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,355 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.