How can I use a date as a variable within a template

I am attempting to create a template for our 4-weekly sprint reports.

Included within it are multiple tasks, assigned to various team members, and I want to add a due date to these tasks.  In a normal page, I would type '//' then select a date.

However, the two dates I care about are the sprint start date and sprint end date, and each of these appears many times in the template.

Therefore, I want to add $start_date and $end_date variables.

However, when I create a new page based on this template, confluence does not expand '//' into a date entry dialogue, and so the resultant tasks are not properly tagged with due dates.

 

Is there any way to achieve what I need here?

2 answers

I don't know if I understand your question correctly.

If you want to add the date picker to your blueprint template, the XML fragment (storage format) is this:

<time datetime="2016-02-26"/>

Don't know if this applies also to user templates (if you are referring to them).

This project may serve as an example: https://bitbucket.org/atlassian/confluence-business-blueprints/, especially BusinessBlueprintsContextProviderHelper

Hope this helps ...

Hi,

Our plugin the Page Tree Creator has a date picker and is very easy to use. It also supports multi-page templates without any programming skills.

I know, this is not exaclty the answer you are looking for, but give our Page Tree Creator a try.

Marketplace link: Page Tree Creator

Regards,
Stephan

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

371 views 20 10
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