update-task
Update Task
Update fields of an existing task.
Instructions
The user's query is in $ARGUMENTS (e.g. "set task 042 to high priority and in-progress", "rename task 15 to Fix auth bug", "add tag backend to 042").
-
Parse the user's input from
$ARGUMENTSto extract:- The task ID (required)
- The fields to update and their new values
-
Look up the task: Run
taskmd get <ID>to confirm the task exists- If not found, run
taskmd listto show available tasks and ask the user which one they meant
- If not found, run
-
Determine how to apply each update:
Fields supported by
taskmd set(use CLI):--status— pending, in-progress, completed, in-review, blocked, cancelled--priority— low, medium, high, critical--effort— small, medium, large--type— feature, bug, improvement, chore, docs--owner— assignee name--parent— parent task ID (empty string to clear)--phase— phase ID (must match a phase id in.taskmd.yaml; empty string to clear). If the phase doesn't exist in.taskmd.yaml, add it there first (seeadd-taskskill for the phases config format).--add-tag/--remove-tag— add or remove tags (repeatable)--add-pr/--remove-pr— add or remove PR URLs (repeatable)
Build a single
taskmd set <ID>command with all applicable flags:taskmd set 042 --priority high --status in-progress --add-tag backendFields NOT supported by
taskmd set(edit file directly):- title — edit the
title:line in the task file's frontmatter - depends-on — edit the
depends-on:list in the frontmatter - custom frontmatter fields — edit the frontmatter directly
- description / subtasks / acceptance criteria — edit the markdown body
For direct file edits:
- Read the task file with the
Readtool - Use the
Edittool to make the change - Run
taskmd validateto ensure the file is still valid
-
Handle errors:
- If the task ID is invalid or not found, tell the user and suggest running
taskmd list - If a field value is invalid (e.g.
--priority mega), explain the valid options - If
taskmd validatefails after a direct edit, fix the issue before confirming
- If the task ID is invalid or not found, tell the user and suggest running
-
Confirm the changes to the user, showing what was updated
More from driangle/taskmd
complete-task
Mark a task as completed. Use when the user wants to mark a task as done or complete.
25do-task
Look up a task by ID or name and start working on it. Use when the user wants to pick up and execute a task.
24add-task
Create a new task file following the taskmd specification. Use when the user wants to add a new task to the project.
22import-todos
Discover TODO/FIXME comments in the codebase and convert selected ones into task files. Use when the user wants to turn code TODOs into tracked tasks.
22next-task
Get the next recommended task to work on. Use when the user asks what to work on next or needs a task assignment.
21get-task
Get details of a specific task by ID or name. Use when the user wants to view or look up a task.
20