Variable Summary
$item (ModelObject)
The primary accessor for work item data. Available for all entity types.Example
$wi (IWorkItem)
Legacy Polarion work item API. Only available when the entity is a work item (not for documents or other entity types).Example
$wi is only set for work item entities. For Document or other non-work-item entity types, $wi is null. Use $item for cross-entity-type templates.$tx (Transaction)
Current transaction object for transactional queries and read-only operations.Example
$module (IModule)
The LiveDoc containing the current work item.null for entities not within a document.
Example
Always check
#if($module) before accessing module properties. Entities that are not contained within a document will have $module set to null.$context (PowersheetContext)
Powersheet-specific context providing access to project scope, document scope, and query capabilities.Example
The exact methods available on
$context depend on the Powersheet version. Consult the server logs for available context properties.$pObject (IPObject)
The raw Polarion persistent object underlying the entity.Client-Side Context Variables
In addition to server-side Velocity variables, Powersheet supports client-side$context expressions for dynamic value resolution in YAML configuration.
These are resolved at configuration processing time, not during Velocity template evaluation. See JavaScript Functions for client-side expressions.
Complete YAML Example
Related Pages
- Velocity Templates — template syntax and evaluation
- Polarion Services — platform service variables
- Properties — data model property definitions