complete_task
Completes a task in a single call, optionally logging hours, adding a comment, and moving it to a specific stage. Supports task name resolution for convenience.
Instructions
Complete a task in one call with optional time logging and comment. Atomically: marks task completed, optionally moves to completion stage, adds comment, and logs time. Supports name resolution for workItemId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workItemId": "<workItemId>"
},
"name": "complete_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Completion comment to add (optional, supports markdown) | |
| projectId | No | The project ID (optional if HACKNPLAN_DEFAULT_PROJECT set) | |
| workItemId | Yes | Work item ID (number) or task name (string) - supports name resolution | |
| hoursWorked | No | Hours to log for this task (optional) | |
| moveToStage | No | Stage ID to move task to on completion (optional, defaults to current stage) |