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

All Services Are Auto-InjectedThese 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

Server-Rendered Fields Are Read-OnlyProperties 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. Run a Lucene search through the project the service hands back:
Search through getTrackerProject, not directly on the service. The services exposed to a template are read-only proxies, and they admit only methods whose names begin with get, is, has, find, search, list, count or exists. queryWorkItems matches none of those, so calling $trackerService.queryWorkItems(…) is refused and the cell renders #SERVER_RENDER_ERROR.getTrackerProject is an allowed read, and the project it returns carries the same query method — which is why the two-line form above works while the one-line form does not.

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:
Verify in applicationThe 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 August 31, 2026