Access the Top Panel Template
Starting with version 25.5.0, you can edit the top panel template directly from the RISKSHEET interface:- Open your RISKSHEET document
- Click Menu > Configuration > Edit Top Panel Configuration
- The built-in editor opens with syntax highlighting
Alternative: Edit as Attachment
For older versions or when direct editing is unavailable:- Click Menu > Document > Open Live Document
- Locate risksheetTopPanel.vm in the document or template attachments section
- Download the file, edit locally, and re-upload
Configure Displayed Fields
The top panel template uses Velocity syntax to render document custom fields and metadata.Basic Field Display
Add document custom fields using the$!document.customFields.<fieldName> syntax:
Layout Structure
The template uses a grid system with row and column classes:Add System Fields
Display built-in Polarion document properties:Available Velocity Context
The top panel template has access to these objects:| Object | Type | Description |
|---|---|---|
document | com.nextedy.risksheet.model.Document | RISKSHEET document object with custom fields |
doc | Wrapped document | Enhanced document object with Polarion API access |
tx | ReadOnlyTransaction | Current Polarion transaction |
documentId | String | Document ID in format “spaceId/documentId” |
projectId | String | Current project ID |
trackerService | ITrackerService | Polarion tracker service for work items |
securityService | ISecurityService | Polarion security service for permissions |
currentDate | java.util.Date | Current server date/time |
Advanced: Add Custom Logic
Use Velocity scripting for conditional display or computed values:Dynamic Values from User Context
Display user-specific or role-specific information:Session Notes and Audit Trail
To capture session metadata:- Create a document custom field (e.g.,
sessionNotes, type: String) - Display it read-only in the top panel:
- Users edit the field via Menu > Document > Properties
- Notes appear in the RISKSHEET header after saving
Top panel templates display document custom fields as read-only text. To edit values, users must open Document Properties or use workflow actions.
Verification
After editing the template:- Save your changes in the configuration editor
- Reload the RISKSHEET page (F5 or Ctrl+R)
- You should now see your custom fields displayed in the header area above the spreadsheet grid
See Also
- Configuration System - Understanding RISKSHEET configuration architecture
- Velocity Template Context - Complete API reference for Velocity templates
- Top Panel Template - Reference documentation for top panel configuration
- Use the Configuration Editor - Guide to the built-in configuration editor
Sources
Sources
KB ArticlesSupport TicketsSource Code
MaximizeViewCommand.tsRisksheetViewServlet.javaShowConfigurationCommand.tsAppConfig.tsRisksheetProjectProperties.java