Jira Rich Text Gadget doesn't show correct code format

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 11.3.3, 10.3.21
    • Component/s: Rich Text Editor
    • None
    • 10.03
    • 1
    • Severity 3 - Minor

      Issue Summary

      Jira Rich Text Gadget doesn't show the correct code format

      Steps to Reproduce

      1. Create a Rich Text Gadget in the Dashboard
      2. Input the codes below in the Rich Text gadget
        {code:xml}
        <test>
        <another tag="attribute"/>
        </test>
        {code}
        
        {code:java}
        // Some comments here
        public String getFoo()
        {
            return foo;
        }
        {code}
        
        {code:json}
        {
         "id": 1,
         "name": test user,
         "email": testuser@local.com,
         "location" {
         "country": Indian
         }
        }
        {code}
        
        {code:sql}
        select * from jiraissues
        {code} 
        
        {code}
        ps -eaf|grep java
        {code}
        
      3. Click the Visual button, the code format is all good
      4. Click the Save button

      Expected Results

      All codes should be displayed in the correct format, as in the Visual view.

      Actual Results

      The XML and JSON codes are not correctly displayed

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available

        1. image-2026-06-01-14-55-53-581.png
          110 kB
          Cynthia Wang
        2. image-2026-06-01-15-01-05-819.png
          128 kB
          Cynthia Wang

              Assignee:
              Unassigned
              Reporter:
              Cynthia Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: