Hi,
I'm using Scriptrunner for Confluence to generate a hierarchy of pages based on this script: https://scriptrunner.adaptavist.com/latest/confluence/rest-endpoints.html?_ga=2.33295928.766920601.1607532354-1624645482.1587410427#_create_project_pages
This works great except that the pages that are generated are ordered alphabetically and not in the order they are in the spec structure (which lists pages to create). I know I can manually reorder pages in the UI but I'm looking for a way to enforce (or correct) the ordering to match the order in my page list (the order I'm creating them in).
Thanks for any guidance.
Community moderators have prevented the ability to post new answers.
Never mind, I found it. Just need to call setPosition() on the page after I create it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.