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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Display parent page in search results Edited

We are building a portal on top of Confluence and would like to enhance the search results with additional information.
For every search result item (page or attachment), we would like to display the 1st level parent page this item belongs to.

For example, we have the following hierarchy of pages:
* * User Guides
* * * User Guide 1.pdf (attachment)
* * Technical Guides
* * Video Lesson 1

If a User Guides page or User Guide 1.pdf attachment is present in the search results, we would like to show a tag next to it saying that it belongs to the 'Documentation' section (sections always being 1st level pages in the hierarchy under the root page of Confluence content).

Couple questions:
1. When an attachment is found in search results, is it possible to use its attributes somehow to find the page it belongs to (by ID in URL or similar)?
2. If we know a page, it is possible to trace its hierarchy somehow (for example, using API) to find the 1st level ascendant?

Thank you!

1 answer

0 votes

This is NOT an answer!

It is an end of 2020 and it seems that this trivial but very important aspect has not been addressed by Atlassian at all. We have a site which contains a directory structure of addresses, and we attach various documents associated with each address. We want to search for some documents and know which address they belong to, however, that does not seem to be possible in Confluence (or at least I have not found a way how to do that) without then clicking on each found document and looking in the path above.  Why is the found document parent or even the whole path not included in the found result? Why cannot I chose them to be included as an optional choice?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

199 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you