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.
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) |