grundic / confluence-page-copier

Python script for creating recursive copy of Confluence pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order of pages is not preserved

rfominych opened this issue · comments

page order in the copied tree is not preserved, pages are stored alphabetically. e.g.

Given tree with ordered children, not in alphabetical order:
root1
B child
A child

Script goes through the pages in the correct order from top to bottom:
copy root1
copy B child
copy A child

the result tree will be with children in alphabetical order:
root1
A child
B child

Questions are:

  • Can we preserve page order when issuing "COPY" command to Confluence API?
  • Or maybe we can use some additional "ORDER" command after copying each page?