Server Rendering Context
When a property is configured withserverRender, the server evaluates the expression using Velocity templates with automatically injected Polarion services. These services are available as context variables in all server-rendered expressions.
Injected Polarion Services
Server-Rendered Property Configuration
Properties configured withserverRender in the data model are evaluated on the server before being sent to the client. This affects both how the property value is computed and its editability.
Property Definition
Velocity Template Context Variables
Server-rendered expressions have access to these context variables during template execution:Service Usage Patterns
Tracker Service
Use$trackerService to query work items, access tracker metadata, and run Lucene queries within server-rendered expressions.
Security Service
Use$securityService to implement role-based visibility and conditional content in server-rendered fields.
Repository Service
Use$repositoryService to access project metadata, user information, and repository configuration.
Security Considerations
Server-rendered properties interact with the Powersheet security model:The exact list of available service methods depends on the Polarion server version. Consult the Polarion SDK documentation for the full API reference of each injected service.
Complete YAML Example
Related Pages
- Velocity Templates — Template syntax and expression language
- Context Variables — All variables available in server rendering context
- Polarion Services — Detailed reference for each injected service
- Properties — Data model property configuration
- Permissions — Security model for properties and entities