Ensure version control for live templates by choosing Confluence pages over templates
Summary
Templates provide a convenient way to create standardized content across your workspace. However, unlike Confluence pages, templates lack a versioning feature. When you use a template as the source for a Scaffolding live template, changes—such as removing a field—can lead to permanent data loss on all pages where that field is used. This article explains the impact of this limitation and provides a workaround.
In this article, the term template refers to both user-created templates and global page templates. To create either type for use with Scaffolding Live templates, navigate to Space settings > Look and feel > Templates. From there, click Create a new template under User-created templates or scroll down to Global page templates if you have the permissions to create a global template for the entire space.
Environment
Confluence Cloud
Scaffolding Forms & Templates Cloud
Diagnostics Steps
Not applicable.
Cause
Confluence templates do not support version control. This means that any changes made to the original template will not be tracked by Confluence's versioning system. This can lead to significant issues, particularly if a field is removed from the template.
Lett's explore the following example.
Scenario
Suppose you create a live template and use it to generate 10 pages across your workspace. If someone later removes a field from that template, all data associated with that field on those 10 pages is permanently lost.
Consequences
Because templates lack versioning, you cannot revert them to a previous state, and lost data cannot be recovered. If the live template used a standard Confluence page, its versioning feature would allow you to recover the lost data.
Workaround
To prevent data loss due to the lack of versioning in Confluence templates, use standard Confluence pages for live templates instead. Pages have a strong versioning system that lets you track changes and recover lost data if necessary.
To create a live template using a Confluence page:
Create a page and design it as you would in a regular Confluence template.
Create a number of pages using the template page as a source in the Live Template macro.
Now, any changes made to the source page will be tracked, allowing you to revert to previous versions if necessary.
Resolution
Follow our best practices to successfully prevent data loss when using the live templates.
Always use pages for critical templates: For any template that will be used extensively or where data integrity is crucial, create the template as a Confluence page.
Monitor for changes: Keep track of any changes made to templates or pages, and communicate these changes with your team to prevent accidental data loss.
Additionally, a feature request is pending with Atlassian to add versioning to Confluence templates. We recommend that administrators and users track its progress and vote for it if this feature is important to their workflow.