how to check macros on confluence

What would be the best way to get the list of all the macros installed/running on a confluence instance?

4 answers

1 accepted

0 votes
Accepted answer

Hi Davin,

I saw that you created that macro Milo was referring to and was hoping you can help.  I took the code and created the macro&new page but am now getting the same error message the a few others have gotten:


Hope you can help.  Thanks in advance.

Davin Studer Community Champion Aug 18, 2016

First of all make sure you have copied it all correctly. If that still is not working then put this line ...

console.log('Macro report: ' + searchURL);

 ... in between these two lines and save the macro.

searchURL = AJS.params.baseUrl + '/rest/searchv3/1.0/search?where=${searchSpace}&spaceSearch=true&queryString=macroName:' + encodeURIComponent(;

Then go to your macro report page and open up the developer tools (F12 in Chrome and IE/Edge). You should see something like this in the developer tool's console.


image2016-8-18 14:6:14.png


image2016-8-18 14:5:48.png

Try copying and pasting one of the URLs into your browser's address bar. What result do you get from that?

Thanks for your patience Davin.  This is a little above my knowledge.  I am on the developer's console and picture attached is what I got.

.Screen Shot 2016-08-18 at 6.06.10 PM.png

Davin Studer Community Champion Aug 18, 2016

Ahhh! Your Confluence instance is setup such that the base URL is https://confluence-stage.303net.pvt/confluence but you accessed the page using normal http not https. You need to use https otherwise the user macro will fail to run because of the same-origin-polcy when it comes to AJAX requests. 

Davin Studer Community Champion Aug 18, 2016

And really if your system admins set up your confluence instance to use https they should make it such that you cannot access it with just http ... but that is another issue entirely.

Thank you very much.  That did the trick.

@Davin Studer has a pretty slick solution:

0 votes
Davin Studer Community Champion Aug 18, 2016

Also, if you use 5.10 there is now a native report in Confluence Admin that can tell you your macro usage.

Thanks @Milo.  Will take a look at that page.

@Davin.  Thanks but we currently are on 5.7.4.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,337 views 96 8
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