Copy Page Tree

Using Copy Page Tree, you can copy all pages within a page tree, that is a page and all of its children, to another space or to the same space. When copying you can rename pages or add a prefix to copied pages.

To use this feature, you must have view permissions on all the pages you are copying and edit permission in the space that you are copying the page tree to.

To use this script, follow these steps: 

  1. Select the space where the page tree is currently located for Source Space

  2. Specify the page tree that you wish to copy in Select a Space

  3. Select the space you want to copy the page tree to Target Space

  4. Add a Prefix to be added to the copied pages. 

  5. Specify the part or whole page name you wish to transform in the Search and Replace boxes.

    If your Target Space is the space where the page tree originated, you must add a prefix or rename the pages since Confluence does not allow pages to have the same name in the same space.

  6. Select Run.

    Links and image links within the tree of pages you are copying will automatically be updated to reflect any new page titles.