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

When cloning a ticket with a "#" and "-" in a code block, the line is interpreted as part of list

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: n/a

      If I clone a ticket that contains a code block that has either "#" or "-" characters on any of the code lines, it will disregard the code block. The line will be interpreted as part of the numbered/bulleted list and will go outside the code block. 

      This only happens when a numbered or bulleted list has started before the "#" or "-" characters.

      Steps to Reproduce

      1. Create a Jira issue with the description containing a numbered list with a first entry.
      2. Then on the second entry of the list, enter a code block that contains either a "#" or "-" character. Example below:
      3. Clone the Jira issue:

      Expected Results

      The clone should be the same as the format from the original Jira issue.

      Actual Results

      The code block was broken apart, and the entry with the # is interpreted as part of the numbered list. 

      Workaround

      To work around this issue, remove the space between the special characters "#" and "-" and the next character in the line.

      Forr example, instead of using these:

      # go to directory
      - go to directory

      Use these instead:

      #go to directory
      -go to directory
      

              Unassigned Unassigned
              6b2430609069 Alexis
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: