"$currentDate" & "$currentUser"

This question is in reference to Atlassian Documentation: Create a Template

Why are variables "currentDate" and "currentUser" working only in the template "Meeting notes"? When I create my own templates it doesn't work!

1 answer

0 votes

Hi Anastasia, those variables are part of the meeting notes blueprint, and are unfortunately not available in an ordinary template.   You can comment or watch the suggestion here https://jira.atlassian.com/browse/CONF-30567

You can add your own variables to a template, but they do not automatically populate with information from Confluence, but instead provide a popup for the user creating the page to fill in. 

 

There is an option for "Title of page to be created" macro and you can use @currentDate. This will populate the page with custom title and current date.

Can you explain, where to find this option and how to use? I seem not to be able to use it, when I create a new template.

Thanks

Title of page to be created

Is in the Create From Template edit screen. It does not show up on the template.

 

The basic flow is

  1. Insert a Page Properties macro in your template
  2. Create a new page and add Create From Template macro
  3. Edit the Create From Template macro
  4. Then in the "Title of page to be created" text field add @currentDate
Like 1 person likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,192 views 74 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you