I'm using Atlassian's "Insert Confluence List" macro on a confluence page.
I need to search for a specific label that is tagged on some confluence pages. The issue I have when I put this label in the search using the "Insert Confluence List" macro is that the search results I receive are in the thousands, not just the pages with the specific label applied.
I've tried to refine the search using the "labelText:" operator as:
labelText:YOURLABEL
I've even tried the space filter with the above operator shown below and it still doesn't provide just the label as my results.
labelText:YOURLABEL AND spacekey:YOURSPACEKEY
In Atlassian Confluence, you can use the "Content by Label" macro to search for and display pages with specific labels. Here's how you can do it:
Edit the Page:
Insert the Macro:
Configure the Macro:
Insert the Macro:
Publish the Page:
Search with Multiple Labels:
project
and 2024
will show pages with both labels.Saved Filters:
Search for Labels in the Search Bar:
labelText:your-label
in the Confluence search bar to find all pages tagged withHi @MSanchez and welcome to the Community! Have you tried the "Content by Label" macro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Laurie Sciutti, Thank you for responding!
The "Content by Label" macro is great because the search returns the correct pages that have the label. However, I need to display certain page metrics which only seemed to be available when using the "Insert confluence list" macro. The metrics I need to display along with the page label are: pager version, updated at, updated by, and version number. The table format with the different column options is perfect from the "Content by Label" macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah...I see @MSanchez . disclaimer: I have not previously used this macro as I'm still using Data Center but I played around with it in my Cloud sandbox and got it to work by inserting the macro, editing it using the Edit search query and then Edit link options in the table. This really doesn't seem like it should be how this works and I was not able to actually find documentation on this specific macro but I may be missing something.
My search query looked similar to this: https://<yourspaceURL>/wiki/search?spaces=XXX&labels=xxx
HTH!
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.