Show macro usage in confluence 4

Hi,

is there any plugin, macro, etc. for showing how much a macros are used and if, on which sites?

There was a plugin called https://studio.plugins.atlassian.com/wiki/display/CMUS/Confluence+Macro+Usage+Status+Plugin some days, but outdated as it no longer works on confluence 4 ;(

This would be a great help to get a list of plugins never used and shouldn't maintained any more in the current installation.

1 answer

1 accepted

Hi there,

I'm sorry to say that there isn't a macro or plugin that does this anymore for Confluence v4 but I have opened a feature request to ask that it is added to a future version of Confluence: https://jira.atlassian.com/browse/CONF-26332

As a workaround, reproduced from this site, you can search for a macro can be done by entering the following string into the Confluence search box, (where x is the name of the macro):

macroName: x*

Notes for those implementing this workaround:

  • The key word is case sensitive. It must be “macroName”, and not “macroname” or any other variation.
  • There is a space between the colon and the macro name.
  • The macro name (x, include, excerpt-include, and so on) is the value that you supply in wiki markup. (It is the name of the macro as defined in the “atlassian-plugin.xml” file.)
  • The asterisk at the end of the macro name is required, to ensure that the search picks up all references. (Evidently the reason for this is that the value in the query is stemmed, but the value in the Lucene index is not stemmed. The asterisk will prevent the stemmer from kicking in.)

All the best,
John

This workaround is great for getting a quick view for a single macro, thank you for digging this out

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

299 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you