Confluence 5.8.5 Tree View not showing hierarchy

We recently installed Confluence 5.8.5 and imported (using REST API) several pages. The pages are showing up as expected. However, when we try to view the pages in the Tree View (pages/listpages-dirview.action?key=testSpace) the pages don't show up and the list is blank. Any idea why this is happening?

Thanks.

4 answers

Hi Greg,

As you've imported those pages using Rest API, I suspect Confluence might not have indexed the content.

I'd suggest as first step you perform a rebuild of the content index.

Please let us know how it goes.

Thanks!

Kind regards,

Luiz Maia
Atlassian Support

Thanks Luiz - I just rebuilt the index and the Tree View still does not show up. The "Recently Updated" shows up fine and the "Alphabetical" list is also fine...just the Tree View is blank. We also recently installed Confluence 5.7.3 and this had no issues with the Tree View - we are basically doing the same thing as before except this time we are using 5.8.5

0 vote
Steven Behnke Community Champion Aug 14, 2015

This is a fairly common problem. If you didn't specify an "ancestor" when you imported the pages, they will be at the root of the space. The sidebar is looking for "descendants" of the page you're on RIGHT NOW, which I can surmise is the Space Home page. 

  1. Click the image2015-8-14 13:33:4.png button in the sidebar
  2. Select Reorder pages
    image2015-8-14 13:33:50.png
  3. You will likely note that instead of being UNDER the homepage, these pages are simply at the root of the space. As I noted above, the sidebar's behavior is to show the Pages under the page you're on. Since the page "print" isn't under Behnke Home, I will not see them on the sidebar when I am on the page Behnke Home.
    image2015-8-14 13:35:22.png
  4. To fix this, you can use the Reorder pages function to drag'n'drop all the pages necessary where they belong. 

You can avoid this issue by specifying which piece of content this newly created page belongs under as you import it. You would need to declare this like so: 

"ancestors": [{
        "type":"page",
        "id":PARENTID
}]

 

This function is the same for adding comments to pages, so that you can add threaded comments to pages using the same method.

{
    "type": "page",
    "ancestors": [{
        "type":"page",
        "id":PARENTID
    }],
    "title": "TITLE",
    "space": {
        "key": "SPACEKEY"
    },
    "body": {
        "storage": {
            "value": "BODY CONTENT",
            "representation": "storage"
        }
    }
}

Confluence REST API: REST API Examples

Thanks Steven for the details!

I'm actually already setting the 'ancestors' as you mention when doing the REST import. In fact I posted my findings on this about three months ago here in the comments section:

https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples

...so the hierarchy is being set on import.

For some reason the "Reorder pages" view is coming up blank (even though the pages exist in the hierarchy).

I'm also seeing this if I create a new space with the "Documentation Space" option...for some reason the example pages created for the vanilla space don't show up in the Tree View...hmmm - not sure what would be causing this.

Thanks again for the info!

Steven Behnke Community Champion Aug 14, 2015

Haha Greg, I just quoted your own dang comment right back at you. :3 I'm definitely curious about this problem...

Any progress Greg ? I have a similar problem.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

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...

2,821 views 27 11
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you