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

Page Tree Search Macro - Can You Set Default Filters?

I am trying to add the Page Tree Search macro to a page. While the search box works fine, many of my pages have 5-15 attachments within them, and these attachments often include the Page name. For example, if I have a Page titled "Chicken Recipes," there are 10 attachments that are named "Chicken Recipes - Fig 1," "Chicken Recipes - Fig 2," etc.


This makes the Page Tree Search not ideal since every time I search, all of those attachments also appear. I know after I search, I can use the filters on the right to only view Pages. However, can I set the Page Tree Search to only search for "Pages" by default? I would only want to search by Pages and not by Blog Posts, Attachments, etc.

1 answer

1 accepted

1 vote
Answer accepted
Diego Atlassian Team Nov 22, 2019

Hello there, @Scott Kesselring ! I can see that setting up a default search parameter can be quite useful in your case. However, there is no setting for us to use as a default for the Page Tree Search Macro.

The macro acts more like a shortcut to the complete search rather than a separate search in itself. The filter that the macro applies is to reduce the search scope to the defined root page. The root page can be the current page where the macro has been placed or any other in the same space.

One thing you can do is use the Confluence Search Syntax to pin down results more quickly:

But, as you have noticed, there is no “default filter” setting for the Page Tree Search Macro.

I hope this clarifies things a bit for you, Scott!

Hey Diego! Thank you for your answer! It does provide some insight.

I ended up working around the issue by using Labels and the "Livesearch" Macro. Since I only wanted Pages and not Attachments to appear in my search, I applied a Label of "Pages" to all my pages. Then I changed to the "Livesearch" Macro and restricted the search to only show results with the Label "Pages" and this worked.

Thank you for the clarification though!

Like Diego likes this
Diego Atlassian Team Nov 25, 2019

Hello again, @Scott Kesselring ! Great to hear that you were able to reach your desired functionality within Confluence. Thank you very much for explaining how you worked around the situation.

Come share with the community again sometime in the future.  

Like Scott Kesselring likes this

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

408 views 23 8
Join discussion

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