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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

How can I search for pages that have the Pages Properties macro in Confluence?

I need to search for all pages that include the Pages Properties macro. I tried: macroName:page-properties but returned no results (I know for a fact that there should have returned lots of pages).

Any ideas?

Thanks!

3 answers

2 accepted

1 vote
Answer accepted
Jonathan Smith Community Leader Mar 14, 2019

@Victoria Reggiardo ,

  You can see how many pages use this macro from the Confluence admin console:

  1. Cog wheel, general configuration 
  2. Macro Usage
  3. Scroll down to Page Properties Macros
  4. a.jpg

It looks like those items are clickable.. hope this helps.

- Jonathan

Jonathan Smith Community Leader Mar 14, 2019

When clicking the 'details', it will take you to a search results screen. From here, you will need to filter down to what you want to see.

Thanks so much @Jonathan Smith . Unfortunately, I'm not a Confluence admin, I was looking for a way in which a regular user can obtain such info.

@Victoria Reggiardo 

  Try this link:

https://yourconfluenceURL/dosearchsite.action?cql=macro+%3D+%22details%22

 

- Jon

Jonathan Smith Community Leader Mar 14, 2019

Anxiously awaits @Victoria Reggiardo to try the link above.

dp.gif

Jonathan Smith Community Leader Mar 14, 2019

@Victoria Reggiardo 

  Sweet! We both learned something today! 

If you are satisfied with the answer, please vote and accept this thread. 

Thanks,

Jon

I'm sorry but I'm not a coder at all, what should I change if I want to search for another macro?

Actually, what part of the URL defines the Page Properties macro?

Jonathan Smith Community Leader Mar 14, 2019

https://yourconfluenceURL/dosearchsite.action?cql=macro+%3D+%22details%22

  • Assuming cql means confluence query language

Other examples:

Attachments macro
https://yourconfluenceurl/dosearchsite.action?cql=macro+%3D+%22attachments%22

Info macro
https://yourconfluenceurl/dosearchsite.action?cql=macro+%3D+%22info%22

Your admin should be able to supply the desired URLs for other macros if needed.

- Jon

Jonathan Smith Community Leader Mar 14, 2019

I don't think your going to be able to 100% guess the URLs. Some like page properties macro say "details" in the URL..

@Jonathan Smith , that's great. This is really helpful, thanks!

Thanks @Jonathan Smith  an option for admin I didn't use yet :) - maybe a tip for everyone using macroName: nameofmacro* check out the correct name of the macro with your browser using F12 cause search is really really a *miau* here ;)

Like Jonathan Smith likes this
0 votes
Answer accepted
Jonathan Smith Community Leader Mar 14, 2019

Hi @Victoria Reggiardo ,

  What is your purpose for searching for pages with this macro?

Reminder: Page Properties Report macro + page label would populate a dashboard with contents from those desired pages.

- Jon

@Jonathan Smith

We want to know the number of pages that use that specific macro.

Jonathan Smith Community Leader Mar 14, 2019

Note: Since your search had special characters, you might have to put quotes around that.

@Jonathan Smith

Thanks for your reply, macroName:"page-properties" is not working either.

0 votes
Liza Top I'm New Here Dec 08, 2020

Way too late for the original question, but I'll add it for future Googlers. Use the following in a search field:

macroName:details*

The technical name of the page properties macro is "details" not "page-properties". The * is needed to prevent possible search problems. See https://confluence.atlassian.com/doc/confluence-search-syntax-158720.html

Tested and used in Confluence Server 7.8.3

Suggest an answer

Log in or Sign up to answer
TAGS
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...

59 views 0 3
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