If you had the SQL for Confluence and Run Self-Service Reports for Confluence add-ons this is what I would suggest. Without those I'm not sure how you would do it outside of creating your own add-on to output the page's order in the tree. I was not able to find a way to do it with a user maco ... that doesn't mean it can't be done. If anyone with some velocity chops knows how to get the page order with velocity feel free to call me wrong. Anyway, I'll post this for anyone else who does happen to have those add-ons that might want to do this.
Here is the SQL so that it can be cut and paste. It is indeed all necessary. I know it looks like you should just be able to query and get the CHILD_POSITION where the CONTENTID = '$page_id' but that only works if the pages have been manually ordered. If they are in default (alphabetic) order then the CHILD_POSITION column is actually NULL. Hence, the need to create the temp table with the identity column to auto number the rows.
declare @tempTable table ( POSITION int identity(0, 1), CONTENTID numeric(19, 0) ) insert into @tempTable (CONTENTID) select CONTENTID from CONTENT where PARENTID in ( select PARENTID from CONTENT where CONTENTID = '$page_id' ) order by CHILD_POSITION, TITLE select POSITION + 1 from @tempTable where CONTENTID = '$page_id'
Hi Community! 2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs