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

expand=renderedFields returns incorrect HTML in REST API endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • Issue - Backend
    • None

    Description

      Issue Summary

      As per the next documents

      Using expand=renderedFields as parameter in the request, converts field values to HTML, but the result is not correct as per the content of the field

      Steps to Reproduce

      1. add ?expand=renderedFields to the endpoint URL

      For example:

       

      "description": "| | |\n|!https://URL.aha.io/attachments/.../.../...?size=original|width=367,height=183!|{color:#034a59}*Outcome - updated in Jira*{color}\n{color:#034a59}Optimize job postings to motivate users to submit candidates.{color}\n\n{color:#034a59}*Current:*{color}\n{color:#034a59}edited string{color}\n\n{color:#034a59}*Solution*{color}\n{color:#034a59}edited string{color}\n\n{color:#034a59}*Why is this a Priority?*{color}\n\n* {color:#034a59}Because it will save time for everyone{color}\n* {color:#034a59}It's cool{color}\n\n\n\n{color:#034a59}*Key Stakeholder*{color}\n{color:#034a59}String 1, String 2, String 3{color}\n\n{color:#034a59}*Next Steps*{color}\n\n* {color:#034a59}Automate action items to have system complete when appropriate - test{color}\n\n\n\n{color:#034a59}*Prototype:*{color}[{color:#00b9da}+Link+{color}|https://www.edited_ULR.com/file/.../ALGO-95---Job-Insights-Time-to-Fill-Addition?type=design&node-id=10-0&mode=design]|"

      gets converted to 

       

       

      "description": "<div class='table-wrap'>\n<table class='confluenceTable'><tbody>\n<tr>\n<td class='confluenceTd'>&nbsp;</td>\n<td class='confluenceTd'>&nbsp;</td>\n</tr>\n<tr>\n<td class='confluenceTd'><span class=\"image-wrap\" style=\"\"><img src=\"https://URL.aha.io/attachments/.../.../...?size=original\" height=\"183\" width=\"367\" style=\"border: 0px solid black\" /></span></td>\n<td class='confluenceTd'><font color=\"#034a59\"><b>Outcome - updated in Jira</b></font><br/>\n<font color=\"#034a59\">Optimize job postings to motivate users to submit candidates.</font></td>\n</tr>\n</tbody></table>\n</div>\n\n\n<p><font color=\"#034a59\"><b>Current:</b></font><br/>\n<font color=\"#034a59\">edited string</font></p>\n\n<p><font color=\"#034a59\"><b>Solution</b></font><br/>\n<font color=\"#034a59\">edited string</font></p>\n\n<p><font color=\"#034a59\"><b>Why is this a Priority?</b></font></p>\n\n<ul>\n\t<li><font color=\"#034a59\">Because it will save time for everyone</font></li>\n\t<li><font color=\"#034a59\">It's cool</font></li>\n</ul>\n\n\n\n\n<p><font color=\"#034a59\"><b>Key Stakeholder</b></font><br/>\n<font color=\"#034a59\">String 1, String 2, String 3</font></p>\n\n<p><font color=\"#034a59\"><b>Next Steps</b></font></p>\n\n<ul>\n\t<li><font color=\"#034a59\">Automate action items to have system complete when appropriate - test</font></li>\n</ul>\n\n\n\n\n<p><font color=\"#034a59\"><b>Prototype:</b></font><a href=\"https://www.edited_ULR.com/file/.../ALGO-95---Job-Insights-Time-to-Fill-Addition?type=design&amp;node-id=10-0&amp;mode=design\" class=\"external-link\" rel=\"nofollow noreferrer\"><font color=\"#00b9da\"><ins>Link</ins></font></a>|</p>" 

       

      Expected Results

      The table format should be respected

      Actual Results

      The HTML prints an empty table and then the content outside the table

      Workaround

      Currently, there is no known workaround for this behavior

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              4bd2fd3801db Jorge H
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: