The Copy Page Tree app allows you to add a page action to copy not only the current page but a complete page hierarchy. The app supports adjustments of page names to avoid problems with page name duplication. Copies can be saved to other Spaces as well.
Copy an entire page tree, Parent Page and its Child Pages, including page Attachments
Rename pages to be copied
Review the page tree copy
Supports page name adjustments to avoid issues with page name duplication
Delete an entire page tree (might need to be enabled)
The progress bar gives real-time feedback about the progress of the copy job
Quick links to Source and Destination pages upon copy completion
The following screenshots are from the Cloud version. The Server version operates essentially the same.
How to copy a page tree
Start on the page you want to copy along with all its child pages.
In the Tools menu drop-down, select Copy Page Tree
The Copy Page Tree macro displays
Select the page tree destination
Under Select Destination section, select the page you want to copy the tree (the page you started on in steps 1 & 2 above) to
Space and Parent Page must already exist in order for it to show in the destination dropdowns
To copy the Parent Page titled Page tree you want to copy in the Sandbox Space, and all of its child pages, to the page, titled Destination page - where you want the copied page tree you would:
Select Sandbox in the Space dropdown
Select Destination page - where you want the copied page tree in the Parent Page dropdown
You can choose a destination in a different Space than the location of the page tree you are copying
Customize your output if needed
Copy is already prefilled for you however you may edit how you wish.
Clicking Expand All allows you to view all the pages in the tree.
The copying process begins followed by a confirmation page
Click Go To New Page
Your copied Parent Page and all of its Child Pages have been copied to your chosen destination page, viewable in the sidebar under Pages.
You must insert the Page Tree Macro to view the copied page tree on your destination page. See the below instructions for adding the page tree macro.
Permissions for Copy Page Tree Tool
A user must have edit permissions for a page in order to have the "Copy Page Tree" tool available in the page menu.
For each page in the tree that is being copied the user must have view permission for the page. If they do not then that page will be skipped in the copy.
For the destination page, the page that will become the root page of the copied tree, the user must have view permission.
For the destination space the user must have:
the add permission for pages
the add permission for attachments (if copying attachments)
the add permission for comments (if copying comments)
Permissions for Delete Page Tree Tool
Note that, by default, space permissions are set so that confluence-users do NOT have the Page --> Delete permission. The first step that an admin must take to allow regular (non-admin) confluence-users to use "Delete Page Tree" is to grant Page --> Delete to confluence-users.
If a user has "remove" permissions on the parent page but not on some child pages the "Delete Page Tree" tool is available. When it is used to delete the page tree, restricted pages in the tree will not be deleted. Restricted pages will remain while the other pages are deleted.
How to add Page Tree macro after copying a page tree
On your destination page click the page Edit button (pencil icon) then Other Macros
Search for and select Page Tree macro
Select the Root Page
Select the Start Depth, the level of child pages you want to display and click Save
Your newly copied page tree now displays on your destination page