/planner-todo:planner-task-update <task-id> [--progress 0|50|100] [--bucket <bucket-id>] [--priority urgent|important|medium|low] [--complete]from planner-todo
Updates a Microsoft Planner task — changes progress, moves to a different bucket, sets priority, renames, or marks complete. Requires an ETag for PATCH operations.
Ships in planner-todo. Installing the plugin adds it to Claude Code.
Update an existing Microsoft Planner task. Supports changing progress percentage, moving the task to a different bucket, adjusting priority, and marking tasks complete. All PATCH operations on Planner tasks require an ETag to prevent concurrent modification conflicts.
Requires a delegated token (user context). App-only tokens are not supported.
Required OAuth scope:
Tasks.ReadWrite — read and update Planner tasks| Argument | Required | Description |
|---|---|---|
<task-id> | Yes | ID of the Planner task to update |
--progress <n> | No | Progress percentage: 0, 50, or 100 (only these three values are valid) |
--complete | No | Shorthand for --progress 100; marks the task as complete |
--bucket <bucket-id> | No | Move the task to a different bucket |
--priority <level> | No | urgent, important, medium, or low |
--title <text> | No | Rename the task |
At least one update flag must be provided. If only <task-id> is given with no flags,
display the current task state and exit without making changes.
Planner requires the current ETag for any PATCH operation. Fetch the task first:
GET https://graph.microsoft.com/v1.0/planner/tasks/{taskId}
Authorization: Bearer <token>
The ETag is returned in the response header:
HTTP/1.1 200 OK
ETag: W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="
Content-Type: application/json
Save the complete ETag string (including W/"...") for the If-Match header.
Also capture the current values of percentComplete, bucketId, priority, and
title from the response body — display these in the "before" state of the success output.
Only include fields that are being changed. Do not include unchanged fields in the PATCH body — this reduces the risk of overwriting concurrent changes from other users.
percentComplete accepts only three values in Planner:
| Flag | Value | Meaning |
|---|---|---|
--progress 0 | 0 | Not started |
--progress 50 | 50 | In progress |
--progress 100 | 100 | Completed |
--complete | 100 | Same as --progress 100 |
Any other value (e.g., 25, 75) will be rejected by the API with a 400 error.
Map the string flag to the Planner numeric priority:
| Flag | Numeric value |
|---|---|
--priority urgent | 0 |
--priority important | 1 |
--priority medium | 3 |
--priority low | 5 |
Setting bucketId moves the task to a different column on the board. The new bucket
must exist within the same plan — cross-plan moves are not supported.
{
"percentComplete": 100,
"bucketId": "FtzysDykv0-ds9-U4v-MEmQAJvkJ",
"priority": 1,
"title": "Updated task title"
}
PATCH https://graph.microsoft.com/v1.0/planner/tasks/{taskId}
Authorization: Bearer <token>
If-Match: W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="
Content-Type: application/json
Expected successful response: HTTP 204 No Content (empty body).
If the PATCH returns HTTP 412 Precondition Failed, another process updated the task
between the GET and PATCH. Automatically retry once:
GET /planner/tasks/{taskId} to obtain the fresh ETag.Error: Task was modified by another user while updating.
Task ID: <task-id>
Please re-run the command to retry with the latest task state.
| HTTP Status | Cause | Resolution |
|---|---|---|
| 400 Bad Request | Invalid percentComplete value or unknown field | Use only 0, 50, or 100 for progress |
| 404 Not Found | Task does not exist | Verify the task ID |
| 409 Conflict | Task state prevents modification (e.g., plan deleted) | Check if the owning plan or group still exists |
| 412 Precondition Failed | ETag is stale | Re-GET the task and retry (see Step 4) |
| 429 Too Many Requests | Graph throttle | Wait Retry-After seconds and retry |
Show the before/after state for all changed fields:
Task updated successfully
─────────────────────────────────────────────────
Task ID: oAtmh1OGz0i-hdvvnZbfGmQAF7sk
Title: Implement login page
Changes applied:
Progress: 0% (Not Started) → 100% (Completed)
Priority: Medium (3) → Important (1)
Bucket: Backlog → Done
No changes: title, assignments, due date
─────────────────────────────────────────────────
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
20 commands in this plugin
/planner-bucket-createCreate a new bucket in a Planner plan/planner-business-scenarioCreate and manage Business Scenario isolated task containers — app-owned Planner tasks with access control policies/planner-goalsCreate and manage goals and OKRs in a Planner Premium project via Dataverse/planner-nested-planCreate a Planner plan nested inside a task, enabling hierarchical plan decomposition/planner-plan-createCreate a new Planner plan with buckets for a Microsoft 365 Group/planner-roster-createCreate a roster-based Planner plan that does not require a Microsoft 365 Groupnpx claudepluginhub thelobbi/claude-m --plugin planner-todoOther plugins' commands for the same job