I'm working on a tool to migrate our docbook/html documentation into Confluence. We currently use Confluence 5.3.1 and I do not have control over upgrading to a more recent version.
I use the JSON-RPC API (https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Methods) and a Python script to do the work.
I'm hitting a problem where the individual pages are automatically ordered alphabetically when imported to Confluence. I need a way to enforce specific order via the script (we have a total of 44 books and 243 chapters, one page per chapter, so manual reorder is out of the question).
I tried to "movePage" within its parent with the "append" order after uploading it but although the API reports success the order stays auto-sorted.
What's the way to achieve that through the API?