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

Jira Issues Macro - SVG on JIRA are Missing on Confluence

XMLWordPrintable

      Problem

      When Confluenc needs to display, in Jira macro, a custom field with SVG values coming from Jira, not all values are parsed on Confluence

      Environment

      • Confluence 8.5.12
      • Jira 9.12.12

      Steps to Reproduce

      1. On Jira, create a Jira task using a 3rd party app that generates SVG values, like Traffic-Lights for Jira Data Center. That also affects other apps.
      2. On Confluence, create a page using a Jira macro and setup the macro to display the 3rd-party custom field.
      3. The Jira macro displays a black box instead of the image from the custom field

      Expected Results

      Actual Results

      Workaround

      On Confluence 8.9 and lower, you can use Jira gadgets to properly display the images from 3rd-party custom fields.

      Notes

      As a proof of concept, It's possible to force Confluence to display the 3rd-party app image by:

      1. Searching on Jira for the issues you would like the image displayed on Confluence.
      2. Export the search to XML and locate the <svg></svg> related to the 3rd-party app.
      3. On Confluence, using Dev Tools, open the page with the Jira macro issue.
      4. Locate the element on Dev Tools.
      5. Replace the HTML by the same <svg></svg> available on Jira XML export.

        1. Screenshot 2024-08-28 at 11.09.57.png
          115 kB
          Marcelo da Costa
        2. Screenshot 2024-08-28 at 11.10.55.png
          92 kB
          Marcelo da Costa

              14154e4c40d6 Sandeep Mellacheruvu
              8ccca53078e5 Marcelo da Costa
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: