Jira Integration , Json issues

Not applicable

 

Hello Everyone,

I'm experiencing a problem while fetching comments from Jira for a specific issue ID.

When I retrieve the data using the Action, the JSON contains the mention object properly, including the name of the mentioned user. Here's a sample of the JSON received from the Action:

 

{
"type": "mention",
"attrs": {
"id": "6232d26ab8d1",
"text": "@some name here",
"accessLevel": ""
}
}


However, when trying to access the same comment via Flow Designer, the JSON structure is different. In this case, only the id is available, and the text field (containing the name) is missing.

[
{
"marks": [],
"text": "This issue requires your attention. ",
"type": "text",
"attrs": {}
},
{
"marks": [],
"text": "",
"type": "mention",
"attrs": {
"name$": "attrs",
"id": "62357006a9ab8d1"
}
},
{
"marks": [],
"text": ", ",
"type": "text",
"attrs": {}
},
{
"marks": [],
"text": "",
"type": "mention",
"attrs": {
"name$": "attrs",
"id": "624e7dcdf8250"
}
}
]


can anyone let me know , why the structure getting changes or how can we handle or correct this.