Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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

2 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? 

Suggest an answer

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

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

125 views 0 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