I have created a User Created Template and am confused on how to enter a variable. I am seeing that at the top there is an option to Insert a New Variable. I can then name that variable and choose whether it is text, multi-line text, or a list. After I have created said variable, I'm confused on how to use that same variable in another place on the same template. There is no list to choose from my created variables on the template.
Click on the variable in your template. Then hit ctrl+c to copy it and then ctrl+v to paste it wherever you want on the page. When you create a page with the template whatever you do with the variable it will be updated in both spots of the age.
Hmmm. It works for me. I can save a template with variables that have the same name so long as the variable type is the same and in the case of a list the list options must be the same. I only see that error when two variables have the same name, but the params are not the same. Below is what it does for me.
What is looks like when I edit the template
What I see when I create a page based on the template. Changing either of the drop-downs changes them both.
Hey Davin - I've actually figured out the issue and this is a very interesting edge case. In my template, I am using a section with a table and the variable sits inside of the table. Then I use the same variable in another part of the template that is not inside of a table. What I have to do is go to the variable that sites in the table, edit it, then save it once more, then I am able to save my template and move forward. I'm wondering if the table is what is causing the issue.
I have not tested this but seems like I just saw this on a video recently. You create a variable call it $x and assign its initial value in the first instance it is used.
Let's say down a paragraph or two you simply use $x and that should resolve to what you entered above. Not tried this but that is what I think you need. Best of luck!
What I found out is that if you have repeated the variable multiple times, you will have to find the first occurrence and then Edit & Save the variable, then your template will be good to go.
@Davin Studeris there any chance for Atlassian to fix this defect? It is really stopping people to create/update user template, because user has to confirm the variable(s) by Edit&Save them every time you open the template,
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events