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.

            [CONFSERVER-41551] Cannot render macros from content rest API

            If this helps, I had the same problem and resolved it by adding the following to the REST URL:

            &pagepropertiesreport.serverrender

            Gal Ehrlich added a comment - If this helps, I had the same problem and resolved it by adding the following to the REST URL: &pagepropertiesreport.serverrender

            Minh Tran added a comment -

            bob.swift@charter.net I linked those tickets from dwalker@atlassian.com

            Minh Tran added a comment - bob.swift@charter.net I linked those tickets from dwalker@atlassian.com

            Bob Swift added a comment - - edited

            It would be nice if you linked these issues so we could quickly see a status and summary for each

            Bob Swift added a comment - - edited It would be nice if you linked these issues so we could quickly see a status and summary for each

            Duplicated by other tasks as stated in comment.

            Drew Walker added a comment - Duplicated by other tasks as stated in comment.

            Drew Walker added a comment - I'm going to close this task in favour of specific issues per macro. e.g: https://jira.atlassian.com/browse/CONF-44384 https://jira.atlassian.com/browse/CONF-44384 https://jira.atlassian.com/browse/CONF-44389 https://jira.atlassian.com/browse/CONF-44386 https://jira.atlassian.com/browse/CONF-44668 https://jira.atlassian.com/browse/CONF-44387 https://jira.atlassian.com/browse/CONF-45450 Any new issues relating to content rendering in Connect can be found with this query: https://jira.atlassian.com/issues/?jql=project%20%3D%20CONF%20AND%20labels%20%3D%20content-rendering  

              dwalker@atlassian.com Drew Walker
              dwalker@atlassian.com Drew Walker
              Affected customers:
              2 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: