How i add new line break between issue description?

Hi Team,
I want line break between issue description .I tried below request. but it’s not working. I am getting 400 bad request issue.how i add new line break between issue description?

{
      fields: {
        description: {
          type: "doc",
          version: 1,
          content: [
            {
              type: "paragraph",
              content: [
                {
                  text: "This is the first line\n\nThis is the second line with a break.",
                  type: "text"
                }
              ]
            }
          ]
        }
      }
    }

Hello @Dhurgeswari

You do not seem to have grasped the core concepts of how ADF works, as you are persisting with using random markdown code in your text rather than the required ADF marks and structure. ADF is like XML… it’s up to you to declare EVERYTHING of significance.

As I advised in your other question, start by using the two ADF test tools to expand your knowledge of how marked up text is converted to ADF and vice-versa.

Good luck on your learning journey.

Hi @Dhurgeswari ,
The ADF format prefers using new paragraphs for line breaks. You can experiment with ADF at this link: https://developer.atlassian.com/cloud/jira/platform/apis/document/playground/

1 Like