It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"$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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

302 views 0 12
Read article

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