Skip to main content

Template Resolution Flow

When Risksheet opens a document, it resolves the configuration by searching for risksheet.json in this order: diagram The resolution result includes metadata about where the configuration was found. This metadata is exposed through the configuration API and shown in the Risksheet UI to help administrators understand which configuration is active.

Configuration Source Properties

These properties track where the current configuration was loaded from. They are set automatically by the configuration loader and are read-only.
PropertyTypeDefaultDescription
sourcestringnullPath to the configuration source file (document or template) used to load the current Risksheet configuration.
templateNamestringnullDisplay name of the template document from which configuration was inherited. Includes the project name prefix if the template is from a different project. Empty when configuration is directly attached to the document.
fromTemplatebooleanfalseFlag indicating whether the configuration was loaded from a template document rather than the target document itself. Set to true when configuration is inherited from a template module.
configPathstringNoneURI path to the configuration attachment that was actually loaded, whether from the document itself or from a template. Useful for debugging configuration source tracking.
fileNamestringNonePath and name of the document where configuration was requested (not necessarily where it was found). Formatted as folder/documentTitle.
revisionstringNoneData revision identifier of the cached configuration attachment. Used internally for cache invalidation when attachment content changes.

Template Path Project Setting

The template path setting controls where users can create new Risksheet documents in the project folder structure.
PropertyTypeDefaultDescription
nextedy.risksheet.templatePathstringRisks/Risk SpecificationOne or more document template paths where risk documents can be created. Supports multiple paths separated by commas.

Single Path

Risks/Risk Specification
This is the default. New Risksheet documents are created in the Risks/ folder using the Risk Specification template.

Multiple Paths

Risks/Risk Specification,Risks/HARA Template,Safety/FMEA Template
When multiple paths are specified (comma-separated), the document creation wizard presents all available templates to the user. Each path points to a folder and template name combination.
Each path follows the format FolderName/TemplateName. The folder name determines where in the Polarion project structure new documents are created. The template name identifies which Polarion template module provides the initial document structure and default risksheet.json configuration.

Document Creation Wizard

The template path setting feeds into the document creation wizard accessible from the Risksheet home view. The wizard allows users to:
  1. Browse available folders defined in the template path setting
  2. Select a template from the configured options
  3. Enter a document name
  4. Create the document with the selected template’s default configuration
Validation RuleDescription
Folder requiredThe folder field cannot be empty. Validation rejects empty folder selections.
Template selectionWhen multiple template paths are configured, the user must select one.
Document nameA non-empty document name is required.
The document creation endpoint is POST /document/create. On success, the user is redirected to the new Risksheet document. On failure, an error message is displayed.

Override Template Workflow

Risksheet provides a mechanism to detach a document’s configuration from its inherited template, creating a document-specific configuration: diagram
  • Override Template: Creates local copies of configuration files (risksheet.json, risksheetPdfExport.vm, and other template attachments) directly on the document, detaching it from the global template.
  • Revert to Template: Removes the document-level configuration attachments and restores template inheritance. This discards all document-specific customizations.
Reverting a document back to template inheritance permanently discards any document-specific configuration changes. There is no undo for this operation. Consider backing up the document’s risksheet.json attachment before reverting.

Configuration Editor

Risksheet provides a visual configuration editor accessible via the toolbar or context menu. The editor opens in a new browser window.
PropertyTypeDefaultDescription
configEditUrlstring${baseUrl}/risksheet/configuration/Base URL for the Risksheet configuration editor interface.
projectIdstringCurrent projectThe Polarion project identifier passed as a query parameter to the editor.
document.idstringCurrent documentThe document identifier passed as a query parameter to specify which document’s configuration to edit.
typestringSee applicationThe type of configuration to edit (e.g., columns, settings, levels). Determines which editor panel is displayed.
The configuration editor URL is constructed as:
${configEditUrl}?project=${projectId}&document=${document.id}&type=${type}

Suggester Configuration

Project-level settings control the behavior of the autocomplete suggester used in item link and task link columns. These settings apply globally to all Risksheet documents in the project.
PropertyTypeDefaultDescription
nextedy.risksheet.suggester.keywordRequiredbooleanfalseControls whether keywords are mandatory when using the suggester feature for finding and linking work items. When true, users must provide keywords to search.
nextedy.risksheet.suggester.fuzzySearchbooleantrueEnables or disables fuzzy searching in the item suggester. Fuzzy search allows approximate matches, helping users find items despite slight spelling variations or typos.
nextedy.risksheet.suggester.resultLimitnumber20Maximum number of suggestions shown when searching for items to link. Higher values provide more options but may impact performance.
nextedy.risksheet.suggester.wildcardSearchbooleantrueEnables or disables wildcard searching. When true, users can use wildcard characters (* and ?) when searching for items.
nextedy.risksheet.suggester.allFieldSearchbooleanfalseWhen enabled, searches all fields of linked items instead of just primary fields. Provides more comprehensive search results but may impact performance.
For large projects with thousands of work items, consider reducing resultLimit to 10 and disabling allFieldSearch to improve autocomplete responsiveness. Enable keywordRequired to force more targeted searches.

UI Customization Settings

Project-level settings allow organizations to rebrand and customize the Risksheet interface.
PropertyTypeDefaultDescription
nextedy.risksheet.toolNamestringRisksheetDisplay name of the tool shown in the UI. Organizations can rebrand to match their terminology (e.g., FMEA Tool, Risk Matrix, Safety Analysis).
nextedy.risksheet.documentNamesstringRisk AnalysesPlural form of the document type name shown in the UI.
nextedy.risksheet.documentNamestringRisk AnalysisSingular form of the document type name shown in the UI. Should match the plural form for consistency.
diagram

Additional Project Properties

PropertyTypeDefaultDescription
nextedy.risksheet.disableAutoSuspectbooleanfalseDisables automatic suspect link marking when changes are made through Risksheet. When true, edits in Risksheet do not trigger suspect links on linked work items. Useful for workflows where Risksheet edits should not invalidate existing links.
settings.global.helpstringhttps://go.nextedy.com/risksheet-support-portalURL opened when users click the Help button. Override this to point to your organization’s internal documentation.

Configuration Loading and Caching

Risksheet caches configuration files for performance. The cache uses the attachment revision identifier to detect changes:
BehaviorDescription
Cache keyDocument path + configuration file name
Cache invalidationTriggered when the attachment revision changes
Configuration updateUse Menu > Override Template or the configuration editor; changes take effect on page reload
If the configuration file cannot be read or parsed, Risksheet logs an error: "Error while reading configuration". Check the Polarion server logs for details. Common causes include malformed JSON syntax in risksheet.json or missing template attachments.

Complete Example

Project-level settings configured in Polarion Administration:
nextedy.risksheet.templatePath = Risks/FMEA Template,Risks/HARA Template,Safety/TARA Template
nextedy.risksheet.toolName = Risk Analysis Tool
nextedy.risksheet.documentNames = Risk Assessments
nextedy.risksheet.documentName = Risk Assessment
nextedy.risksheet.disableAutoSuspect = false
nextedy.risksheet.suggester.keywordRequired = false
nextedy.risksheet.suggester.fuzzySearch = true
nextedy.risksheet.suggester.resultLimit = 15
nextedy.risksheet.suggester.wildcardSearch = true
nextedy.risksheet.suggester.allFieldSearch = false
This configuration:
  • Provides three template options (FMEA, HARA, TARA) in the document creation wizard
  • Rebrands the tool as “Risk Analysis Tool” with “Risk Assessment” document naming
  • Keeps auto-suspect links enabled for traceability compliance
  • Configures the suggester with a 15-result limit and fuzzy/wildcard search enabled
KB ArticlesSupport TicketsSource Code
  • AppConfig.ts
  • DocumentConfigProvider.java
  • ShowConfigurationCommand.ts
  • PdfExportConfigurationService.java
  • AppConfigParser.ts