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

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2888650 ] New: CONFSERVER Bug Workflow v4 [ 2980526 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2798739 ] New: JAC Bug Workflow v3 [ 2888650 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2716309 ] New: JAC Bug Workflow v2 [ 2798739 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2390496 ] New: JAC Bug Workflow [ 2716309 ]

            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
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2286723 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2390496 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2226250 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2286723 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2180829 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2226250 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1947892 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2180829 ]

              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: