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

The REST API "expand=renderedField" option does not convert to HTML properly if there are code decorator in it

    XMLWordPrintable

Details

    Description

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Have a custom rich text field on your issues or just use the description field
      2. Encapsulate any text with "code" in the field mentioned above. Here are the text that I have encapsulated in code

        For context, I have used the following option to encapsulate it in "code"
      3. append the following on your Jira site base URL /rest/api/3/issue/ {issue_key}?expand=renderedFields
        Please replace {issue_key}

        with the appropriate issue key

      Expected Results

      It should show a proper encapsulation of code with the code tag of HTML

      Actual Results

      The HTML appears to be malformed
      <p>sadcascac</p>\n\n<p>sdcsac</p>\n\n<p>{{/cloud-accounts/</p>\n

      {id}

      \n<p>/access-rights/</p>\n

      {user}

      \n<p>}}</p>

      Workaround

      no workaround found at the moment

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dooi Der Lun
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: