Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Need DB query to get pages without parents

We recently had an issue where a page had no parent page and it was not showing on the sidebar, although the page was directly accessible. I fixed the issue by "moving" the page and listing the correct parent during the move.

I would like to query the database (Postgres) to see how many other pages do not have a parent page listed, in order to see if we have other pages with the same issue.

I need help with that query.

Thank you

1 answer

1 accepted

0 votes
Answer accepted

The database is not a good way to do this, you'd have to go digging through several different tables, making negative searches (you're actually looking for a record that isn't there, so you'd actually need to be searching for every parent-child relationship and then subtracting that from a list of pages, and then working out which ones of those are root pages and which are orphans)

It is far easier to go to Space Settings -> Manage pages -> Hidden, where Confluence will list them so you can get to them quickly.  

I'm not sure why Atlassian changed the name to "hidden", when "orphan" was more clear (maybe it's only clear to English speakers?).  The URL still has orphan in it, the example I traced through because I wasn't sure where they'd moved it to in the new admin layout was

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events