My company has separate confluence instances set up for two different teams. I was tasked with making an import/export tool so that we could transfer pages that are relevant for both teams between the two instances. Currently, I am able to get the base page html, comments, and attachments using the REST API, but I cannot find any documentation on how to get code blocks from the pages. Is there any REST API call that will allow me to achieve this? Thank you!
Hi @Zain Farooq ,
I'm recalling that this can be done as long you are able to get the full page along with the macros. If you are just getting base page html, it will not be enough as you can be missing other contact from macros besides code-blocks.
Thanks,
Ben
Hi @Benjamin ,
After inspecting the page html we found that it is an xhtml file with the macros contained within xml tags. We are able to get the page body but are unfamiliar with how to programmatically display the fetched page in our import preview page. Could you guide us in how to go about doing this?
Thanks,
Zain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Zain Farooq ,
Here's some postings of similar on similar topics:
You maybe want to possibility of copying the raw storage format to the other confluence space.
You may want to revisit the entire requirement itself. Like why can't the teams be on one confluence?
If they are on the same confluence, it will be simpler to just have the other team be on a separate space and just use the include macro for the pages you want to share across to the other team.
-Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.