Hello,
Need to add the SQL output generated in the codeblock of the comments section, below is the command im using.
curl -D- -u $uname:$token -X POST --data @/tmp/a.json -H "Content-Type: application/json" https://abc.atlassian.net/rest/api/3/issue/abc-34716/comment
Error:
{"errorMessages":[],"errors":{"comment":"Comment body can not be empty!"}}
a.json:
{
"type": "codeBlock",
"attrs": {
"language": "javascript"
},
"content": [
{
"type": "text",
"text": "var foo = {};\nvar bar = [];"
}
]
}