Hi i want to write a good description using heading and bullet list using JIRA REST API.But i didn't get any example in the documentation like how i can use heading etc. Right now i am sending this payload in the api.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post
Hi @Prateek Vyas
are you looking for the correct structure to achieve Headings, Bulletlists etc.?
Maybe the Document Builder is helpful for you: Document builder
You can write formatted text in the WYSIWYG-Editor and it gives you the ADF version ready to be pasted into your JSON.
You need to use the Atlassian Document Format
In order to format descriptions containing such elements as headings, bullet lists, ordered lists, list items, etc. using Jira REST API, you will need to switch from plain text to Atlassian Document Format (ADF). In your case, the payload is already in ADF, but now you have to include such nodes as `heading`, `bulletList`, `orderedList`, and `listItem` instead of just `paragraph`.
A good practice in such situations is to format your description in Jira's editor manually first and then use Atlassian's Document Builder to automatically generate JSON representation of your ADF. In this way, it will be much easier for you to understand what structure should be used and how to build JSON manually.
It looks like you're new here. Sign in or register to get started.