Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Confluence Export All Child Pages: 10 Ways

If you manage a Confluence space, you know the pain: you need to export a parent page and all its child pages, but Confluence’s built-in export only grabs the current page. This listicle covers ten practical methods to export parent and child pages together, from built-in space exports to third-party apps and scripts. It’s for Confluence admins, technical writers, and project leads who need clean HTML, PDF, or Word exports without losing hierarchy.

1. Space Export (HTML or PDF)

Confluence’s native space export is the most reliable way to get all child pages in one go. Go to Space tools > Content Tools > Export, choose HTML or PDF, and select Custom Export to include only the pages you need. You can even pick a specific parent page as the starting point, and Confluence will include all descendants. This method preserves the page tree structure in the generated HTML, making it perfect for static site generation.

2. Confluence REST API with Python Script

For full control, use the Confluence REST API to fetch all child pages recursively. Write a Python script that calls /rest/api/content/{pageId}/child/page to get immediate children, then loop through each child to get its children. Save each page’s body as HTML or convert to Markdown using a library like html2text. This method is free, but requires basic coding skills and an API token. It’s ideal for automated backups or migrating content.

3. Confluence CLI (Command Line Interface)

The Confluence CLI (a commercial plugin by Bob Swift) offers a simple command to export a page and its children: --action exportPage --space "KEY" --title "Parent Page" --file "output.html" --exportType html. It supports recursive export by default, and you can filter by labels or dates. This is a great middle ground if you’re comfortable with the command line but want a pre-built tool. It works on both server and cloud versions.

4. Third-Party Apps: Scroll PDF Exporter

The Scroll PDF Exporter (by K15t) is the gold standard for professional PDF exports. It lets you export a parent page and all children with custom cover pages, headers, and table of contents. You can choose to include or exclude specific child pages, and it handles complex tables and code blocks better than native export. It’s a paid app, but if you regularly produce client-facing documentation, it’s worth the cost.

5. Third-Party Apps: Better Content Archiving

Better Content Archiving (by Savvient) is designed for archiving, but its export feature is perfect for this task. It can export a page hierarchy to HTML or PDF with a single click, and it preserves attachments and comments. It also lets you schedule exports, which is handy for weekly backups. The free version includes basic export, while the paid version adds scheduling and cloud storage integration.

6. Manual Copy-Paste with Page Tree

If you only have a few child pages, the simplest method is to open the parent page, click the Page Tree macro (or the sidebar), and manually copy each page’s content into a Word or Google Doc. This is time-consuming but requires no tools. For a one-off export of a small section, it’s a valid fallback. Just be careful to preserve headings and formatting.

7. Using the ‘Export to Word’ with a Macro

Confluence’s native Export to Word (available on the page’s ‘…’ menu) only exports the current page. However, you can create a Page Tree macro on a temporary page, then export that page to Word. The macro will render links to child pages, but not their content. To get content, you’d need to use a workaround: insert the Excerpt Include macro on each child page, then include them on a parent page. This is clunky but works without plugins.

8. Browser Extensions like ‘Confluence Export’

Some browser extensions, such as Confluence Export (for Chrome), add a button that recursively exports the current page and its children to HTML or Markdown. They work by scraping the rendered pages, so they’re not official, but they’re quick for occasional use. Be aware that they may not capture all dynamic content, and they can break if Confluence updates its UI. Use them for simple text-heavy pages only.

9. Using the ‘View in HTML’ and Save

For a quick HTML export, open the parent page, click the kebab menu (…) and select View in HTML. This opens a raw HTML version of the page. You can then manually add links to child pages, but you’d have to repeat this for each child. This is only useful if you need a single page’s HTML and can accept that child content is linked, not embedded.

10. Confluence Cloud Automation with Webhooks

If you’re on Confluence Cloud, you can use Automation rules with webhooks to trigger a script that exports child pages. For example, set up a rule that fires when a page is updated, then call an external service (like Zapier or a custom endpoint) that uses the REST API to fetch all children and save them. This is overkill for a one-time export but perfect for continuous syncing. It requires some setup but is fully automated afterward.

How to Choose

The right method depends on your frequency, format, and technical comfort. For a one-off, use the native space export with a custom range—it’s free and preserves hierarchy. If you need PDFs with professional styling, invest in Scroll PDF Exporter. If you’re a developer, the REST API script gives you unlimited flexibility. For non-technical users, a third-party app like Better Content Archiving is easiest. Also consider whether you need attachments, comments, or just page content. Finally, check if your Confluence is Server or Cloud, as some tools only support one.

Frequently Asked Questions

Q: Can I export all child pages without a plugin?
A: Yes, use the space export feature and select ‘Custom Export’ to include only the parent and its children. It’s built-in and works on both Server and Cloud.

Q: Does the native export include attachments?
A: Yes, the space export includes attachments by default, but you can uncheck the option. The REST API also returns attachment metadata if you request it.

Q: How do I export only certain child pages?
A: In the space export, you can select specific pages by checking them in the page tree. In Scroll PDF Exporter, you can include/exclude pages via the ‘Exclude’ tab.

Q: Can I schedule recurring exports?
A: Yes, Better Content Archiving and Confluence CLI (with cron) both support scheduled exports. Native Confluence does not.

Q: Why does my PDF export cut off wide tables?
A: Confluence’s native PDF export often truncates wide tables. Use Scroll PDF Exporter’s ‘Scale to fit’ option or switch to HTML export and convert to PDF with a browser.

Q: Is there a way to export to Markdown?
A: The REST API script can convert HTML to Markdown using a library like ‘html2text’. Some third-party apps also offer Markdown export, but it’s less common.

Final Thoughts

Exporting all child pages in Confluence doesn’t have to be a manual nightmare. Start with the built-in space export for a quick, no-cost solution. If you need polished PDFs or automation, invest in a dedicated tool. For developers, the REST API is your best friend. Whichever you choose, test with a small page tree first to ensure the output meets your needs. Happy exporting!

Confluence Export All Child Pages: 10 Ways
Scroll to top