Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pass Parameters to a Macro

Is it possible to set a page-level constant that I can pass as parameters to a set of macros on the page?

1 answer

0 votes
Bill Bailey Community Leader Nov 30, 2020

Well the Cloud version does not support user macros. How were you planning on creating your macros?

Hi Bill, 
We have templates set up that use the standard /Content by Label Macro, a few times on each page.  Most of the filters in the template are static, but depending on the topic of the page we have to go into each Macro and change one of the filters to make it relevant to the page.  My objective here is to be able to change one constant on the page and have all the macros pick it up as a parameter.  


Does that make sense?



Bill Bailey Community Leader Dec 01, 2020

I think so, and I think the only way to solve this is with a user macro, which are not available in the cloud version. Or you would have to write a plugin to do what you want (even more complex than a user macro).

Hi Bill,
Not sure I agree that the only way to solve this challenge is with a User Macro, as enabling the passing of a parameter to an inbuilt-macro could achieve what I am looking for.

I am new to Confluence, and only have experience with the Cloud solution, so I am not familiar with User Macros.  It wouldn't want to have to create and maintain our own macro to do everything the inbuilt one does, just adding this feature.

Many ways to skin this cat, but my objective is to reduce the effort associated with creating and maintaining pages.



Bill Bailey Community Leader Dec 02, 2020

Well the issue is that if you want to do something server side, it depends on the storage data of the page. And the only two ways I know to do that is with user macros and plugins/apps.

On the client side (display view), you can interject Javascript, which is hard with the Cloud version (or is applied throughout the site). Again, an easy way to inject Javascript on a page is through a user macro. But that only impacts how the page is displayed and NOT its data.

For a complete listing of the differences. 

Hi Bill,
You and I are obviously repressed techies, and are solutioning.  Maybe we need to go back to my requirement, which is really about minimising the effort to set up and maintain pages created from a template, where the template has a number of macros pulling content from other pages on the wiki.  Based on the topic of the page, filters in each macro needs to be modified so content relevant to the page is pulled. 

Sounds like Confluence Cloud doesn't have a solution for this at the moment - would be wonderful if it was considered as a value-add enhancement.


Bill Bailey Community Leader Dec 04, 2020

Yes, the Cloud version is very restrictive when it comes to this sort of customization, plus they may push out an update that breaks what you have set up. This is why I recommend the server version (but they are forcing customer to the much more expensive Data Center).

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

198 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you