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

Cannot render macros from content rest API

XMLWordPrintable

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      The problem: If you request the content body using the content rest API, and the content contains macros, the macros don't work (in most cases).

      The cause:
      1 - Some macros don't explicitly list their web resource dependencies, and so the web resource is not included in the response from the API.
      2 - Web resources that are included in the superbatch are excluded from API response, so if the super batch doesn't exist on the page, then javascript errors are thrown due to missing dependencies.
      3 - Some macros assume a page load lifecycle that will have a load/ready event. When using the rest API this is often not the case.

              dwalker@atlassian.com Drew Walker
              dwalker@atlassian.com Drew Walker
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: