Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-72755

New issue view adds a paragraph after hitting enter on Description instead of hardbreak

XMLWordPrintable

    • 0
    • 11
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      With the new issue view, the description field was changed to use a new format.
      This new format, when editing a test, if you press enter it adds a paragraph between the lines, causing the text to have a huge space between the lines.
      If you copy a text that was typed in any other text editor and paste to the description, it uses hardbreakes between the lines.

      Steps to reproduce

      Create an issue
      Using the new issue view, type something at the description and hit enter and type something again
      Save the change
      Observe the space between the lines

      Outside of Jira, type something at the description and hit enter and type something again
      Copy the text and paste at the description
      Observe the space between the lines

      Additional notes

      The formatted json is the following

      "content": [
              {
                  "content": [
                      {
                          "text": "Test",
                          "type": "text"
                      }
                  ],
                  "type": "paragraph"
              },
              {
                  "content": [
                      {
                          "text": "Weeee",
                          "type": "text"
                      }
                  ],
                  "type": "paragraph"
              },
              {
                  "content": [
                      {
                          "text": "ADASDAS",
                          "type": "text"
                      }
                  ],
                  "type": "paragraph"
              },
              {
                  "content": [],
                  "type": "paragraph"
              },
              {
                  "content": [],
                  "type": "paragraph"
              },
              {
                  "content": [],
                  "type": "paragraph"
              },
              {
                  "content": [
                      {
                          "text": "Teste",
                          "type": "text"
                      },
                      {
                          "type": "hardBreak"
                      },
                      {
                          "text": "With",
                          "type": "text"
                      },
                      {
                          "type": "hardBreak"
                      },
                      {
                          "text": "Copy",
                          "type": "text"
                      }
                  ],
                  "type": "paragraph"
      

      From the screenshot, the first group of words, each line is inside a paragraph. At the second group, the group of words is inside a single paragraph separated by hardBreaks

      Expected Results

      Jira editor should keep using hardbreaks when typing and hitting enter inside the editor and group by paragraphs instead of separate each line by paragraph.

      Workaround

      When typing, use shift+enter to add hardbreaks.

              Unassigned Unassigned
              dbraun@atlassian.com Douglas B (Inactive)
              Votes:
              15 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: