Is there a way to globally edit the "in space" parameter for the Content by Label Macro?

Here is my use case:

The contents of Space A (containing the Content by Label macro) were migrated to Space B.

However, the Content by Label Macro still shows Space A as the target macro - thereby causing the newly-migrated pages to Space B not showing up in the macro's output.

Any input would be appreciated.  

Thank you.

1 answer

0 votes
Ann Worley Atlassian Team Aug 21, 2017

I just added a label to a page, set up the content by label macro to point at it, then moved the page to another space. The Content by Label macro still "found" the page on the other space.

I suspect an indexing issue on your instance. If it's hosted by you, please try reindexing from this guide:
Content Index Administration and if that doesn't work, rebuilding the content indexes from scratch as described in How to rebuild the content indexes from scratch on Confluence server

If this is a Cloud instance, you won't be able to reindex, so if the issue persists, please open a support request at
Ann Worley Atlassian Team Aug 21, 2017

I just realized you set the "in space" parameter as you mentioned in the title of your question - sorry for the mistake.

There is no way to bulk update the macro in the UI. The cleanest way I can think of to do it would be by exporting the space to XML, doing a search and replace based on the macro and then re-importing the space.

Do you have too many pages with broken macros to update manually? You can see where the macro is used on the Confluence Admin>Macro Usage page.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

393 views 0 9
Read article

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