Variables in confluence Text



is there a easy way to define certain variables. like $comanyname=mycompany and use them confuence or space wide?


We wish to sync some pages between multiple company's and that would be a handy feature.

4 answers

0 votes

Hi Fabian,

I would recommend using Excerpt Include Macro for this. 

You can have a page with the main excerpts you'll be re-using, and then you can call them from other pages within Confluence. Keep in mind that a user will need to have view access to the source location if they are to see the excerpt on another page.

Let me know if you have any questions on how to use that.





we already use that on some occasions. but that's not what we need.


What we need is a defined list of words which will be replaced by a set value.

$cname with mycompany


There's no additional feature like that at the moment, but we do have a feature request for it:

Otherwise, you may be able to use an add-on such as Scripting for Confluence. It looks like you may be able to have set variables there.



Davin Studer Community Champion Jan 18, 2018

To add to this if you create a user macro to do the replacement you could put the macro in you page decorator so that is is automatically included on every page.

Hi Fabian,

Maybe our App Easy Space Variables could help. You find it on the Marketplace.

Stephan (I am the CEO of EPS, the vendor of Easy Space Variables)

Thanks but we already try your plug-in. It seems do do exactly what we need.



Ok, great. Please let us know if you need any assistance.

0 votes
Bill Bailey Community Champion Jan 22, 2018

Have you looked at the metadata plugins? You could set a bunch of custom metadata values on a page at root (so it doesn't appear in the left-hand navigation), which can be referenced anywhere in Confluence.

I use this plugin to pass values to documents with the k15t Scroll export utilities.

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 ...

927 views 47 7
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