Show macro usage in confluence 4

childnode August 14, 2012

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

6 votes
Answer accepted
JohnA
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.
August 14, 2012

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

childnode August 14, 2012

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
TAGS
AUG Leaders

Atlassian Community Events