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

renderedFields HTML returned in v3 REST API does not match the HTML in the new issue view

XMLWordPrintable

    • 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Several ADF types are not rendering similar HTML that is output via the new issue view.

      Eg, an ADF "status" block renders the following html on the new issue view:

      <p data-renderer-start-pos="1"><span class="status-lozenge-span" title="AUTOMATION:" data-node-type="status" data-color="blue"><span class="css-on81so"><span class="css-q5kkvr">AUTOMATION:</span></span></span>This is a test of our Jira automation system</p>

      However, it returns the following rendered HTML when accessed via the v3 REST API (using GET /rest/api/3/issue/{issueIdOrKey} and including the "expand: renderedFields" option.

      <p><font color=\"blue\"><b>[ AUTOMATION: ]</b></font>This is a test of our Jira automation system</p>
      

      This output is overly simplified and looks nothing like what it does rendered on the new issue view.  (I do understand that associated CSS needs to go with this, but one can not even come close to approximating it based on the latter output).

      Because of this, there is really no simple way to display the contents of an ADF in a manner similar to what the new issue view is doing.

      This leads me back to the (somewhat common) request for some sort of rendering interface that would take ADF and return at least a similar semblance of HTML to what is used across your platforms.

      Note: my specific problem is that I am using a field that an issue assignee updates in Jira's new issue view with customer notes, then upon and automated transition triggering a webhook that extracts it and formats into an html document that is then emailed to the customer. However, IMO, there is a pretty big disparity between what the issue assignee crafts/wysiwyg's into this field and then how the customer ends up seeing it in their email.

      So much for WYSIWYG.  I did think it meant: What You See Is Sort Of What You Get Depending On How You Access It!

              Unassigned Unassigned
              692d521e28d6 David Hansen
              Votes:
              15 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: