How to get the page tree structure in an HTML export

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

After exporting a space to HTML, the pages are included in a folder, but they are not organized in the same structure as the space's page tree. The exported content also includes the attachments that will be pointing to each of the IDs of the pages.

For importing purposes, it could be used to replicate the same page tree order, but this is not included in the file.

Solution

Besides not being organized in the same structure as the space's page tree, the exported content will include the attachments that will be pointing to each of the IDs of the pages. While the HTML export will not include the pages in the same space page tree structure, there are some methods that help in identifying them:

Use the index.html file

When exporting a space to HTML, a file called index.html will be included in the export. By opening this file, the browser will display details such as:

  • Space Key, Name, Description, and the creator

  • The whole page tree structure in a session called Available Pages

This way, it can be used to organize the files within the generated folder:

Example of index.html.

Take a screenshot of the "Custom Export" option

With this option, upon selecting HTML and proceeding with the export, it is possible to select the Custom Export method. By selecting this option, it will open a full list of pages and their structure in the space's page tree:

Full list of pages and their structure in the space's page tree.

Updated on March 10, 2025

Still need help?

The Atlassian Community is here for you.