Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-99070

Jira Issue Macro doesn't render style attribute for an empty HTML tag related to a Jira custom field

XMLWordPrintable

      Issue Summary

      Jira Issue Macro doesn't render style attributes for an empty HTML tag(div tag) in Confluence related to a custom field in Jira.

      <div style='display:inline-block; background-color:Red; width:50px; height:16px; text-align:left; border: thin solid #ccc'></div>

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

      Steps to Reproduce

      1. Create a custom field in Jira of the type - Picker Color custom field, which is provided by a third-party plugin like Color custom fields.
      2. Associate the custom field with the Project and different screens.
      3. Create an Application link between Confluence and Jira.
      4. Create a page on Confluence, add the Jira Issues macro, and set a valid JQL that includes the custom field in results.

      Expected Results

      The style attribute for an empty HTML tag(<div> tag) should be rendered on the Confluence page for the custom field.

      Actual Results

      The style attribute for an empty HTML tag( <div> tag) is not rendered on the Confluence page due to which the custom field value(Color) is not visible.

      Workaround

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

      Notes

      The issue should have the same roots as the bug CONFSERVER-94113 - Jira Issue Macro doesn't render HTML code in a custom field.

        1. Expected.png
          520 kB
          Nitin Rastogi
        2. Actual.png
          567 kB
          Nitin Rastogi

              Unassigned Unassigned
              33df95c63117 Nitin Rastogi
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: