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

Asynchronously converting the Recently Updated macro via REST API returns wrong result

XMLWordPrintable

      Issue Summary

      Links in the converted result is showing “null/spaces/…” instead of “/wiki/spaces/…” like with the synchronous conversion REST API.

      Steps to Reproduce

      Request body:
       {{

      { "value": "<ac:structured-macro ac:name=\"recently-updated\" ac:schema-version=\"1\" data-layout=\"default\" ac:local-id=\"b6418e51-aa6f-4801-b1ae-f1fb93dfe58c\" ac:macro-id=\"1dd8291cfacc9134bb209ad7585382c63d2b6815d6a29a776e8af9fbae2a8a1f\"><ac:parameter ac:name=\"max\">10</ac:parameter><ac:parameter ac:name=\"hideHeading\">true</ac:parameter><ac:parameter ac:name=\"maxToggle\">false</ac:parameter></ac:structured-macro>", "representation": "storage" }

      }} # Create and publish a page with a Recently Updated macro.

      1. Send a POST request to https://\{SITE-NAME}.atlassian.com/wiki/rest/api/contentbody/convert/export_view?contentIdContext={CONTENT-ID} with the request body
      1. Send a POST request to https://\{SITE-NAME}.atlassian.com/wiki/rest/api/contentbody/convert/async/export_view?contentIdContext={CONTENT-ID} with the request body
      1. Send a GET request to https://\{SITE-NAME}.atlassian.com/wiki/rest/api/contentbody/convert/async/{ASYNC-ID} given the result to Step 3

      Expected Results

      Result of Step 4 is the same as Step 2

      Actual Results

      Result of Step 4 is different as described in the issue summary

      Workaround

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

              10fb3d78bb19 Selena Sui
              10fb3d78bb19 Selena Sui
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: