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

Automatic formatting in Jira's comment and text fields disrupts JSON code structure in Firefox running in macOS

XMLWordPrintable

      Issue Summary

      When editing a code block of JSON or any other code, the editor in Jira issue’s Comments or description or multi-line text field, provides automatic formatting which breaks the structure of the JSON or any other code block. To understand the issue please check the following video:
      The issue is only replicable in Firefox v136.0.2 or v136.0.1 running on MacOS.

      For example, in the editor, when typing :

      `

      { \n Type here something then give another newline in the next line \n  }

      The auto-formatting will remove the new line and take the closing curly brackets on the above line at the end of your text. 

      Steps to Reproduce

      1. Go to comments or description field.
      2. Insert a code block.
      3. Inside the code block type the below first:
      4. {
        
        }
      1. now in the space or the empty line that you have created in the above example, try to put a "" double quotes.

      Expected Results

      The code block should look like: 

       

      {
      "text": "space";
      }
       

       

       

      Actual Results

      Auto formatting kicks in Firefox browser and removes the new line and pushes the closing curly bracket to the above line, breaking the formatting:

      { 
      "text": "space";} 

      Workaround

      Use any browser other than Firefox on MacOS devices as a workaround to avoid this issue. 

              Unassigned Unassigned
              e292eb14feba Anindyo Sen
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: