Forums

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

JIRA API Create Issue with Table using Document Format

Deleted user March 13, 2020

Using the rest API to create a jira issue. the content of the body uses Atlas Document Format.  Everything works fine with simple Paragraph style content but when I try to insert a table element I receive the following error:

"errorMessages": [
"We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."

Here's a sample of my basic table code block

"description": {
"content": [{
"type": "table",
"attrs": {
"isNumberColumnEnabled": false,
"layout": "default"
},
"content": [{
"type": "tableRow",
"content": [{
"type": "tableCell",
"attrs": {},
"content": [{
"type": "paragraph",
"content": [{
"type": "text",
"text": "cell text"
}]
}]
}]
}
]

}]
}

 

1 answer

1 accepted

0 votes
Answer accepted
Deleted user March 13, 2020

Looks like I was missing type & version in the description node.  this works:

"description": {
"type": "doc",
"version": 1,
"content": [{
"type": "table",
"attrs": {
"isNumberColumnEnabled": false,
"layout": "default"
},
"content": [{
"type": "tableRow",
"content": [{
"type": "tableCell",
"attrs": {},
"content": [{
"type": "paragraph",
"content": [{
"type": "text",
"text": "cell text"
}]
}]
}]
}
]

}]
}
Sai Sadhu January 27, 2021

Hey Bob, Glad you found the issue. I am trying to use Jira Python API myself and I am unable to create tables with the new markdown. Wondering what language were you using? 

Deleted user January 28, 2021

I'm actually running this through Filemaker submitting cURL commands.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events