Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence 5.8.5 Tree View not showing hierarchy

gregjm August 14, 2015

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

0 votes
gregjm August 14, 2015

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 F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2015

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

Marinus van Aswegen November 11, 2015

Any progress Greg ? I have a similar problem.

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 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

0 votes
gregjm August 14, 2015

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 votes
Luiz Maia
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2015

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events