How Template Inheritance Works
Risksheet configuration uses a simple inheritance model:- When a document is created from a template, it does not receive its own copy of
risksheet.json. Instead, it inherits the configuration from the template document. - When Risksheet loads, it first checks for a
risksheet.jsonattachment on the current document. If none is found, it searches the document’s template hierarchy. - Changes to the template’s
risksheet.jsonautomatically propagate to all documents that inherit from it.
Step 1: Create a Template Document
- Create a LiveDoc in a central project (for example, a
TemplatesorLibraryproject) that serves as the template repository. - Attach the configuration files to this template document:
risksheet.json— the primary configuration with columns, levels, data types, formulas, styles, enums, and ratingsrisksheetTopPanel.vm— optional custom top panel templaterisksheetPdfExport.vm— optional PDF export script
- Configure the template with the settings that should be shared across all risk documents.
Step 2: Install Default Templates (Optional)
Risksheet ships with two built-in project templates:| Template | Description |
|---|---|
risksheet_template | Standard FMEA template with severity, occurrence, and detection columns |
risksheet_templateHara | HARA template for automotive hazard analysis and risk assessment |
- Navigate to the Risksheet administration interface.
- Click Install Templates.
- The system installs both templates into Polarion’s template repository.
The installer automatically checks whether templates are already present before installation. Reinstalling overwrites previous versions. The installation is transaction-safe — it either completes fully or rolls back on error.
Step 3: Create Documents from the Template
- Open the Risksheet home page for your project.
- Click Create New Document.
- Select a folder and enter the document name.
- Choose the template from the template list.
- Click Create.
risksheet.json unless you explicitly override it later.
Step 4: Set Up Template Paths
Configure where new risk documents can be created by setting the template path in project properties:- Default path:
Risks/Risk Specification - Multiple paths: Separate with commas (for example,
Risks/FMEA,Risks/HARA,Risks/TARA)
Cross-Project Templates
Templates can be stored in a different project than the documents that use them. This is useful for centralized template libraries:- Create the template document in a shared project (for example,
SharedTemplates). - Ensure all users have read access to the template project.
- Documents in other projects that reference this template show a project prefix in
templateName(for example,SharedTemplates/FMEA Template).
Multiple Configurations Per Project
You can maintain multiple different Risksheet configurations within a single project. Each document or document group can inherit from a different template:- One template for FMEA analysis with RPN-based columns
- A separate template for HARA with ASIL-level columns
- A third template for STRIDE/TARA cybersecurity analysis
Update a Global Template
To modify the configuration for all documents that inherit from a template:- Open the template document in Polarion.
- Open the configuration editor (Menu > Configuration).
- Make your changes and save.
- All inheriting documents use the updated configuration on their next page load.
Verification
After setting up your global template and creating a document from it, you should now see:- The document loads with the template’s column layout and settings
- The
templateNameproperty in the Risksheet metadata shows the template name - The
fromTemplateflag istruein the configuration metadata
See Also
- Override Template Configuration — detach a document from its template
- Configure Multi-Project Setup — share templates across projects
- Configure Template Paths — define document creation folders
- Find Configuration Files — identify which configuration a document uses
- Use Project Templates — project-level template integration
Sources
Sources
KB Articles
- How to install Risksheet into existing project Drive pilot
- Setup a global Risksheet template
- Adjusting Risksheet configuration
- Risksheet Configuration Properties
AppConfig.tsDocumentConfigProvider.javaOpenHelpCommand.tsRisksheetViewServlet.javaPdfExportConfigurationService.java