I am integrating the Jira service desk and Jira software via automation and API. when a comment is made on the Jira service desk my automation automatically makes a comment in Jira software, but only if its a text. the following is my payload and I am using smart value to get the last issue comment. How to include media type if its an image. Please let me know if there is any possible way forward.
{
"body": {
"content": [
{
"content": [
{
"text": "{{issue.comments.last.author.displayName}} [automation - JSM] = {{issue.comments.last.body}}",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}}