Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Jira Automation to Teams - "... property 'sections' doesn't exist"

Abigail Lilley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2025

I followed the steps in this article (link) but the automation is failing at the third step. With the error: 

  • Unable to process template language expressions in action 'Post_card_in_a_chat_or_channel' inputs at line '0' and column '0': 'The template language expression 'body('Parse_JSON')['sections'][0]['activityTitle']' cannot be evaluated because property 'sections' doesn't exist, available properties are 'attachments, type'. Please see https://aka.ms/logicexpressions for usage details.'.

 

I can see in the input/output of the Parse JSON step that nothing seems to change, hence the property 'sections' doesn't appear despite being in the schema. How do I make this work??

 

Error response:

Screenshot 2025-07-07 at 16.58.15.png

Screenshot 2025-07-07 at 16.56.17.png

Here are screenshots of the full workflow in Teams:
Screenshot 2025-07-07 at 16.49.23.png
Parse JSON:

Screenshot 2025-07-07 at 16.50.16.png

The JSON Schema:

  • {
    "type": "object",
    "properties": {
    "summary": {
    "type": "string"
    },
    "attatchments": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "activityTitle": {
    "type": "string"
    },
    "activitySubtitle": {
    "type": "string"
    },
    "activityImage": {
    "type": "string"
    },
    "activityText": {
    "type": "string"
    },
    "facts": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "name": {
    "type": "string"
    },
    "value": {
    "type": "string"
    }
    },
    "required": [
    "name",
    "value"
    ]
    }
    }
    },
    "required": [
    "activityTitle"
    ]
    }
    },
    "potentialAction": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "name": {
    "type": "string"
    },
    "targets": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "uri": {
    "type": "string"
    },
    "os": {
    "type": "string"
    }
    },
    "required": [
    "uri",
    "os"
    ]
    }
    },
    "@@type": {
    "type": "string"
    }
    },
    "required": [
    "name",
    "targets",
    "@@type"
    ]
    }
    },
    "themeColor": {
    "type": "string"
    },
    "@@context": {
    "type": "string"
    },
    "@@type": {
    "type": "string"
    }
    }
    }

Post a card in chat or channel:

Screenshot 2025-07-07 at 16.51.53.png

The JSON schema:

  • {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "items": [
    {
    "type": "TextBlock",
    "weight": "Bolder",
    "text": "@{body('Parse_JSON')['sections'][0]['activityTitle']}",
    "wrap": true
    }
    ],
    "width": "stretch"
    }
    ]
    },
    {
    "type": "TextBlock",
    "text": "@{body('Parse_JSON')['sections'][0]['activityText']}",
    "wrap": true
    },
    {
    "type": "TextBlock",
    "weight": "Bolder",
    "text": "@{body('Parse_JSON')['sections'][1]['activityTitle']}",
    "wrap": true
    },
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "items": [
    {
    "type": "TextBlock",
    "weight": "Bolder",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][0]['name']}",
    "wrap": true
    }
    ],
    "width": "auto"
    },
    {
    "type": "Column",
    "width": "auto",
    "items": [
    {
    "type": "RichTextBlock",
    "horizontalAlignment": "Right",
    "inlines": [
    {
    "type": "TextRun",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][0]['value']}"
    }
    ]
    }
    ],
    "verticalContentAlignment": "Center"
    }
    ]
    },
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "items": [
    {
    "type": "TextBlock",
    "weight": "Bolder",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][1]['name']}",
    "wrap": true
    }
    ],
    "width": "auto"
    },
    {
    "type": "Column",
    "width": "auto",
    "items": [
    {
    "type": "RichTextBlock",
    "horizontalAlignment": "Right",
    "inlines": [
    {
    "type": "TextRun",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][1]['value']}"
    }
    ]
    }
    ],
    "verticalContentAlignment": "Center"
    }
    ]
    },
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "items": [
    {
    "type": "TextBlock",
    "weight": "Bolder",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][2]['name']}",
    "wrap": true
    }
    ],
    "width": "auto"
    },
    {
    "type": "Column",
    "width": "auto",
    "items": [
    {
    "type": "RichTextBlock",
    "horizontalAlignment": "Right",
    "inlines": [
    {
    "type": "TextRun",
    "text": "@{body('Parse_JSON')['sections'][1]['facts'][2]['value']}"
    }
    ]
    }
    ],
    "verticalContentAlignment": "Center"
    }
    ]
    }
    ],
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "@{body('Parse_JSON')['potentialAction'][0]['name']}",
    "url": "@{body('Parse_JSON')['potentialAction'][0]['targets'][0]['uri']}"
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6"
    }



And the Automation in Jira for good measure:
Screenshot 2025-07-07 at 16.47.41.png

I'm not sure what else to do, as it appears the information needed just isn't being sent through?

 

Thanks for any help!

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
July 11, 2025

Hi @Abigail Lilley 

 

The link you used is for Datacenter, which probably still has sections in the JSON, not really sure as I can't test it from where I am today.  

I'd suggest going thru the Cloud instructions for setting up this integration. Integrate Jira Cloud with Microsoft Teams | Jira Cloud | Atlassian Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events