patchWorkItem
Updates a single Polarion Work Item by project and ID, with optional dry-run validation to preview changes before applying them.
Instructions
Updates the specified Work Item. Cardinality: targets a single item by ID. For the full collection or a batch, use patchWorkItems instead. Tip: set dry_run: true first to validate the arguments and preview the exact request without sending it to Polarion. The executor returns this preview as normal text, and as structured content when the tool declares an output schema. Examples: {"projectId":"myproject","workItemId":"WI-123","requestBody":{"data":{"type":"workitems","id":"WI-123","attributes":{"title":"Updated title"}}}}. Selection: Use patchWorkItem to update one Work Item by its project and ID; use patchWorkItems for a project-scoped batch and patchAllWorkItems for a cross-project batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access. | |
| workItemId | Yes | The Work Item's ID within its project (e.g. `WI-123`), not the combined `project/id` path used in some link payloads. | |
| requestBody | Yes | The Work Item body. | |
| changeTypeTo | No | The Type the Workitem to change to. | |
| workflowAction | No | The Workflow Action. |