I am trying to implement a user name search on the main page that will only search team pages.

Rebecca Pavelka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2024

The team pages each have a label.  When I list the labels using commas to separate the labels the search only looks at the first labeled page and returns a not found if the team member name entered in the search is not on that page but on a labeled page later in the list of labels.  Each team has a roster page that has a label of aaart, bbart, ccart, etc.

Example:  Search field contains John Doe.  Labels list in macro includes aaart, bbart, ccart.  If John Doe is on the aaart team page it lists the team page he is found on.  If John Doe is on the bbart it returns a no results found message.

Why can't I search for a user's name?

1 answer

1 vote
Humashankar VJ
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.
March 23, 2024

Hi @Rebecca Pavelka 

 

Looks like you are using a label-based search macro in Confluence, and you are experiencing an issue where the search is only returning results from the first labeled page in the list. This is likely due to the way the search macro is analyzing the label list.

 

Try  to modify the search macro to use a more advanced search query that can handle multiple labels. For example, you could use the OR operator to search for the user name on multiple labeled pages.

 

Here is an example of how you could modify the search macro:

 

{search: label=aaart OR label=bbart OR label=ccart AND username=Rebecca123}

 

This search query will return results from any page with the label aaart, bbart, or ccart that also contains the user name Rebecca123.

 

This response inputs might also carry some research outcomes from the open source / blogs / user guide

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!

Warm regards

Rebecca Pavelka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 25, 2024

Thank you for answering.  I understand what you are saying but don't see anywhere to do an advanced search in the macro.  The macro says to enter a comma separated list of labels to filter the search by.  That is what I have done.  It doesn't look like it searches past the first label in the list though.  Using OR or AND in the list of labels doesn't change the way the search is working. 

 

Like Humashankar VJ likes this
Humashankar VJ
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.
March 25, 2024

Hi @Rebecca Pavelka 

Thanks for positng the outcome - 

Let me try with different syntax to eliminate the commas to see if that makes a difference..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events