While trying to add a comment with a heading node on a work item using the CLI, I receive the following error:
Can't be edited: io.atlassian.micros.clibackend.exceptions.InvalidPayloadException: INVALID_INPUT, INVALID_INPUT.
It works fine when I use a paragraph node instead.
I’m using the documentation here to create the payload:
https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/heading/
Does anyone know what I might be doing wrong?
{
"version": 1,
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 1
},
"content": [
{
"type": "text",
"text": "Heading 1"
}
]
}
]
}