It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to include dynamic content in Include Macro

It looks like that the Include Macro show only the static contect of the source page.

Any change of a workaround?

I tried the Query load() Method in the HTML Macro but that doesn't work either. Are there any other (Javascript based) methods to make it work?

I noticed that as I wanted to include the output(overview of  free version of Smart Questions and Answers plugin in the root page of our knowlaedge sharing portal.

1 answer

Dear Stefan,

currently Smart Questions and Answers does not support being shown inside an include macro. Background: the JavaScript part simply does not know that it is included and looks for questions at the wrong place.

Kind regards


I was afraid that this is the reason. 

I'm just wondering if that could be resolved by the jQuery load() Method. I was able to load the full page when previewing the code but as soon as I save the page, the macro is empty. 

Moreover, I would need to sandbox it, as scrips of the loaded page are triggered, what changes the sidebar. I tried it with an iframe unsuccessfully.

Could XMLHttpRequest solve it?

Idea ist to load the page with the plugin fully in the background but include only the plugin's output:

 <div class="conf-macro output-block" data-hasbody="false" data-macro-name="simple-qa-overview">

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you