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

Accepted Answer
6 votes

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
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

258 views 1 4
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