Forums

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

Create from Template Macro : pass variables ?

david Chevreau
Contributor
September 1, 2021 edited

Hello,

i use some template of my own in my user space, with **variables**. Normal.

In order to call that template, i use another page with the _Create from Template Macro_. Not shocking.

Can anyone tell me if there is a possibility of passing some of my (two) needed template variables, in parameters to the _Create from Template Macro_ buton ? It could save me (a lot of) time !

Thanks in advance for your interest in this topic.

1 answer

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2021

I am afraid this can't be done.  The problem is that the create from template macro takes a set of parameters that you define when editing (even when it's creation or the page is being generated by code), and the macro editing function doesn't recognise variables, it won't try to look into the contents, it'll just take the variable name as the parameter.

I think the only way you could do this would be to write your own "create from template" macro - one that accepts parameters that are variable names, and then when it runs, the code knows to interpret those as variable names and go ask Confluence for the current content of the variable.

david Chevreau
Contributor
September 13, 2021

thanks

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events