Forums

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

pagetreesearch macro not working as expected

Ron Kaledas
Contributor
March 22, 2022

I am using the {pagetreesearch:root=root page name} macro in the sidebar...it usually works, but when I'm in certain pages in the space it only searches the attachments on that page, rather than the whole space.

I tried "rootPage=" as I found here in the questions, but that then said "root page not found" and the search button was greyed out.

What am I doing wrong?

 

2 answers

0 votes
Ron Kaledas
Contributor
March 23, 2022

(I hope this is okay to add more info this way?)

as possible additional information, I've noticed when I search that the search string comes up as ancestorIds:167714191 AND mysearchstring.

I'm not sure what the "ancestorIds" is supposed to be, other than some type of page id, but if I copy "ancestorIds:167714191 AND" from a search that works, and replace it in the search within a page that doesn't work (i.e. doesn't search the whole space as expected), then click the magnifying glass to redo the search, then the search works.  So, how do I get the search to force that "ancestorIds" every time?  I thought ":root=my page name" would do that, but no...

Also - it acts like I'm using ":root=@self", even though I put in "my page name" and also tried "@home".

0 votes
Srinatha T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2022

Hi @Ron Kaledas ,

Welcome to Atlassian community. 

I myself need to explore this macro but i went through the documentation here. I think you should specify the space name to search on that entire space. Also, you might be interested in this Livesearch macro. 

I hope above information helps. Have a good day.!

Thanks,

Srinath T

Ron Kaledas
Contributor
March 23, 2022

I actually am specifying my space name (where I specify "root page name" in the question), which is why I'm wondering why it isn't actually searching the space name when I'm within certain pages.

I also saw livesearch, but that seems to search all spaces, or at least more than what I'm looking to search.

So, still wondering why it's not starting from my root page no matter what page I may be looking at...

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events