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.
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!
Haha Greg, I just quoted your own dang comment right back at you. :3 I'm definitely curious about this problem...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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" } } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.