Include page macro does not show/render correct macro from the included page

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Adding a dynamic macro on Page A and Page B and using the include page macro within the dynamic macro of Page A to include Page B, but the include page macro shows macro content from Page A instead of Page B.

      Steps to Reproduce

      1. Create a page - lets name it Page1
      2. Insert a dynamicContentMacro - lets call it Macro1- in the url called by this dynamicContentMacro, we call AP.context.getContext() and AP.confluence.getMacroBody()
      3. Save/publish Page1
      4. Create a second page - lets name it Page2
      5. In Page2, insert another dynamicContentMacro - lets call it Macro2 - of type rich-text; this macro used /rest/api/content/${id}/history/${ctx.confluence.content.version}/macro/id/${ctx.confluence.macro.id}/convert/styled_view?${options} call to render it’s content.
      6. Inside Macro2, add a Macro1
      7. Inside Macro2, add a Include Page macro to include Page1
      8. Save/publish Page2

      Expected Results

      When we view Page2 we should see two different Macro1 - one added in step 2 and one added in step 6

      Actual Results

      In some sites, when we view Page2, we see that the macro in step 2 (which is inside Include Page) is getting duplicate data of Macro1 from step

      Workaround

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

              Assignee:
              Unassigned
              Reporter:
              Ramchandra Kudtarkar
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: