I had a page get corrupted and had to hard delete it from the database. I copied it before I did and wish to have its children moved to the copy. I ran the following SQL but it did not seem to change the heirarchy or have the new space home list the children:
update confancestors set ancestorid=74842628 where ancestorid=442;
Any idea how to accomplis this?
You could perhaps try out the Confluence CLI in Atlassian CLI.
Get a list of child pages for a page:
confluence --action getPageList --space "zconfluencecli" --title "Current Parent Page" --children
Then move each page in the list to a new parent...
confluence --action movePage --space "zconfluencecli" --title "This Child Page" --parent "New Parent Page"
It could be turned into a nice little bash script e.g.
move-page-children "Current Parent Page" "New Parent Page"
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
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