Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using variables to generate Confluence Pages

Jessica Zhang
September 23, 2021

The way Confluence variables work seems closer to an input field. Is there a way to use variables to insert value across the page where the variable is used? 

 

For example, if I define $Version = 1500, and I'd want to insert $version in multiple areas on my page and have it populate the value 1500 where the variable is used. 

 

Example:

$Version = 1500 

The $verison you are requesting is available. To update from $version, make sure you are (...). 

2 answers

0 votes
Axel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2026

If you define multiple variables with the exact same name and configuration everywhere in the template, you/users of this template only will have to fill one variable, when using the template to create a new page.

0 votes
Alex Medved _ConfiForms_
Community Champion
September 29, 2021

Hi

Probably a simple user macro will work here - https://confluence.atlassian.com/doc/writing-user-macros-4485.html

The one that just outputs some static text you define and you use this macro as a placeholder everywhere you need

Alex

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events