Forums

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

how to get issue description body

Arjunan G July 7, 2022

Hello Team,

   I  am developing a Jira custom app I want to use the issue description I did set the UI but now I got the HTML format vale.like (<html><body><p>Paragraph Test</p><h1>H1 Test</h1></body></html>) but I want like this type 

"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Paragraph Test"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "H1 Test"
}
]
this conversation has any documents you have please share me.

1 answer

0 votes
Oliver Siebenmarck _Polymetis Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 7, 2022

Hi @Arjunan G ,

The JSON format you are looking for is called ADF – Atlassian Document Format. To get this format, use the REST API v3.

To learn more about ADF, check this link: https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/

Hope that helps,
 Oliver

Suggest an answer

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

Atlassian Community Events