Skip to main content

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).
The actionId values are defined in the Polarion workflow configuration and must match configured transition names exactly. Check your project’s workflow definitions for valid action identifiers.
Request payload:
Success response:
Error response:
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:
Always save your work before attempting a document status change. The system validates that no unsaved edits exist to prevent data inconsistency.

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:
  1. The transaction is rolled back
  2. The error message is returned to the client
  3. 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’s reviews section. The example below uses YAML, the recommended format for editing sheet configuration (the configuration editor supports YAML since v25.5.0):
In this sheet configuration, the 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).
Last modified on July 10, 2026