-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Macros - Other - Native (1st Party)
-
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
- Create a page - lets name it Page1
- Insert a dynamicContentMacro - lets call it Macro1- in the url called by this dynamicContentMacro, we call AP.context.getContext() and AP.confluence.getMacroBody()
- Save/publish Page1
- Create a second page - lets name it Page2
- 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.
- Inside Macro2, add a Macro1
- Inside Macro2, add a Include Page macro to include Page1
- 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