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

New view - Unable to insert format text if there is a hard break (shift+enter)

XMLWordPrintable

      Summary

      The new view doesn't accept format text (italic, bold, etc) if there is a text with a hard break (shift+enter).

      Environment

      Jira Cloud

      Steps to Reproduce

      1. try to update/ insert a text in a comment or description with a hard break (shift+enter) and any format text (italic, bold, etc).
      2. Save changes.

      Expected Results

      The changes will be saved.

      Actual Results

      In my analyze, I could identify that the Jira is applying the formatted text on the hard break and this is possibly causing the problem.

      {
        "version": 1,
        "type": "doc",
        "content": [
          {
            "type": "paragraph",
            "content": [
              {
                "type": "text",
                "text": "test",
                "marks": [
                  {
                    "type": "strong"
                  }
                ]
              },
              {
                "type": "hardBreak",
                "marks": [
                  {
                    "type": "strong"
                  }
                ]
              },
              {
                "type": "text",
                "text": "test2",
                "marks": [
                  {
                    "type": "strong"
                  }
                ]
              }
            ]
          }
        ]
      }

      Workaround

      1. Remove formatting (eg. bold, italic, underline) from end of line and then use shift+enter
        or
      2. Use just enter instead of shift+enter.

              gmarin@atlassian.com Gustavo Marin (Inactive)
              laguirre Lucas Aguirre (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: