Skip to main content

Server Rendering Context

When a property is configured with serverRender, 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

These services are automatically available in every server-rendered expression. No additional configuration is required to access them.

Server-Rendered Property Configuration

Properties configured with serverRender 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

Properties with serverRender enabled are automatically marked as non-editable in the sheet, regardless of the updatable setting. The server computes the value on each query; client-side edits would be overwritten.

Velocity Template Context Variables

Server-rendered expressions have access to these context variables during template execution:
diagram

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

Last modified on July 10, 2026