Forums

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

Creating local variable on confluence page

Kacper Szczepanek
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!
January 28, 2020

Dear all,

 

I'm looking for a solution, which lets me create a sort of local variable, that I can assign and use in the Confluence page.

Some example:

var tblLength = length_of_the_table_on_the_same_conflu_page;

Later in the text, I can call the variable like this:
'Lorem ipsum contains {tblLength} items'
And receive output like:
'Lorem ipsum contains 43 items'

I'd really appreciate any help :)

3 answers

1 accepted

0 votes
Answer accepted
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2020

Hello @Kacper Szczepanek !

I believe that I understand the desired behavior. However, natively we are not able to perform such in our Cloud platform. Here we can check the differences between Confluence Cloud and Server:

 

In Confluence Server we can achieve something pretty close to that by using User Macros or Plugins available from our Marketplace:

 

I hope this shines some light into your objectives, Kacper! Looking forward to your reply.

Kacper Szczepanek
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!
January 31, 2020

Hi Diego,

You were right, Easy Confluence Variables will do the job. But unfortunately, we are using the Cloud platform and can't switch to the server version.

Anyway, I really appreciate your help :)

Kacper

Like Diego likes this
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2020

Thanks for keeping the thread alive, @Kacper Szczepanek ! Come share with us sometime in the future.

5 votes
Yu Jin
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!
August 3, 2022

Is this still the case, that Cloud platform does not support it?

0 votes
James Tome June 27, 2024

I found a suggestion posted by others on this subject.  https://jira.atlassian.com/browse/CONFCLOUD-70336
Go vote it up!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events