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

Creating local variable on confluence page

Kacper Szczepanek 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 :)

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

4 votes
Yu Jin August 3, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events