I am creating a Confluence template and I would like the date the template is added to the page to be auto populated either in the title or somewhere on the page.
How can I accomplish this for Confluence cloud without an add-on?
Hi there,
As far as I know, templates are limited when it comes to dynamic content. There is a Date macro that you can add to a template, but each time the template is loaded on a page that you're creating, it'll pull the date configured on the macro in the template - not today's date.
That said, it would be possible to add the date the template is added (assuming that takes place on the same date the page is published) to the body of the page. There is an action step in automation for "Edit page" that can add content to the end of a page. It would end up looking something like this:
^The "Date Template Added: text and the date was added via the automation.
The inherent problem you may run into is that "template" isn't a condition you can look at in automation rules, so you'd need some other way to exclude this from happening on every page in the space.
Last thing, it is possible to edit the name of a page, but for that, you'd need to explore a REST API solution in automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.