Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,415
Community Members
 
Community Events
165
Community Groups

Getting the date in the title

The Retrospective template has a nice feature where. when you click on the template it automatically opens a window with the current date in a title box. You can edit and add to the title as you wish.  I would like to duplicate this feature in a template I'm creating but I don't know how to do it. The Retrospective template has no macro or anything to indicate what this feature is. Does anyone know how to do it?

1 answer

4 votes
AnnWorley Atlassian Team Aug 01, 2018

Hi Christina,

I don't know a way to insert the date into the title as a variable using a page template but I have a workaround to offer.

You can put the Create From Template Macro on a page and use @currentDate in the title field, specifying your custom template as the template to be used. That will create a page using your template and inserting the date as the title.

Thanks,

Ann

Thanks Ann. I tried out your solution and it does work if I want to create a template in a specific Space. I am creating a global template and the Create From Template macro doesn't seem to work for that. If I missed something, let me know.

What if you need to have the datetime inserted into the page title, so that it can be uniquely named within the space? Or, what if you need to insert pageID into the title upon creation for the same requirement of uniqueness in page title? How can you create the same functionality of the create from template macro with @currentDate, @spaceKey? 

Hi @AnnWorley , same issues, adding macro not always respond to the use cases, for example, if I use main page as summary with "Page report" but all presented reports is a part of other sub-page (child) => Creating from template cause the page to be under the main page and not where from data reported. 

Is it possible to integrate @currentDate, @spaceKey as a part of template title creation? 

Kind of variable?  

 

Thank you

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

186 views 1 3
Read article

Community Events

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

Events near you