Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-74709

PDF Export of a page with Jira Issue Macro with custom icons has broken images

    XMLWordPrintable

Details

    Description

      Issue Summary

      PDf export of a page with a Jira Issue Macro will have broken images for the Issues icon if they use a custom image icon.

      This occurs for both a Team Managed and Company Managed project in Jira Cloud.

      This also affects apps that use the export endpoint such as K15t's Scroll Exporters for Confluence (Scroll PDF Exporter/Scroll Word Exporter/Scroll HTML Exporter)

       

      Steps to Reproduce

      Jira

      1. create a new issue type and add a custom icon to the issue and ensure it can be used in the project
      2. create an issue using the new issue type

      Confluence

      1. create a page with a Jira macro
      2. in the JQL, include the issues that have the custom icon, e.g. key in (test-3, ecohelp-4)
      3. publish the page and confirm the icons are visible
      4. export the page as PDF

      Expected Results

      The PDF exports with issue icons correctly displaying.


       

      Actual Results

       The Issue Icons are broken images.

      Looking at the URLs for the icons, they have the same format as standard icon, that is

      https://<site>.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/<number>?size=medium

      where just the value <number> is different.

      Apps face restrictions which prevent them from downloading the custom Jira icon image files. The following is logged as the response:

      {"errorMessages":["You do not have permission to view the avatar."],"errors":}

      Workaround

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jrichards@atlassian.com James Richards
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: