Endpoints
Get Available Workflow Actions
Retrieves the list of available workflow actions (status transitions) for a specific work item based on its current state and Polarion workflow configuration.
The response contains valid workflow transitions determined by the current work item state and the Polarion workflow configuration.
Change Document Status
Executes a workflow action to change the status of a Polarion document (LiveDoc).
Request payload:
Risksheet’s approval review creates approval-tagged comments on work items but does not trigger Polarion’s formal approval state transitions (draft → reviewed → approved). To advance a document through Polarion’s formal approval workflow, call the Change Document Status endpoint with an
actionId that maps to a configured workflow transition.Client-Side Behavior
Pre-Validation
Before executing a status change, the client validates:Progress Notifications
Page Reload
After a successful status change, the entire browser page automatically reloads. This ensures all UI elements — buttons, permissions, validation rules, and available workflow actions — reflect the new document status.Transaction Management
All document status changes are executed within Polarion transactions (beginTx/commitTx). All data lives in Polarion work items — Risksheet visualizes and edits Polarion data, it does not store data separately. If an error occurs during the workflow execution:
- The transaction is rolled back
- The error message is returned to the client
- The document remains in its previous state
Document Accessibility Validation
The system validates document accessibility before attempting workflow actions:Error Handling
Error messages from the server are displayed verbatim to help you diagnose problems. Common error scenarios:Console logging is available for debugging workflow executions. Open browser developer tools to view
actionId, response data, and document state during troubleshooting.Configuration Dependencies
The workflow actions API interacts with several request properties:
These three properties co-occur in the request payload. The
actionId must correspond to a valid transition defined in the Polarion workflow configuration for the target document type.
Complete Example
A typical document approval workflow integrates with the sheet configuration’sreviews section. The example below uses YAML, the recommended format for editing sheet configuration (the configuration editor supports YAML since v25.5.0):
rejectedAction property specifies the workflow actionId used when a risk item is rejected during review. The workflow actions API processes this transition and updates the document status accordingly.
Three review managers are available: CommentBased, ApprovalBased, and WorkItemBased. The ApprovalBased review creates approval-tagged comments but does not trigger Polarion’s formal approval state transitions — use the workflow actions API for formal status changes. WorkItemBased review (shown above) creates dedicated review work items linked to the risk item via the configured
itemTypes (mandatory work item type) and linkRole (mandatory link role).Related Pages
- Velocity Template Context — Velocity context variables available during workflow processing
- Configuration Properties Index — all configuration properties
- Sheet Configuration Format — complete sheet configuration reference