/planner-todo:planner-bucket-create <bucket-name> --plan <plan-id>from planner-todo
Creates a new bucket (column) in an existing Microsoft Planner plan via Microsoft Graph API. Accepts bucket name, plan ID, and optional position hint for ordering.
Ships in planner-todo. Installing the plugin adds it to Claude Code.
Create a new bucket (column) in an existing Microsoft Planner plan. Buckets organize tasks into groups on the Planner board — they correspond to the column headers in the kanban view.
Requires a delegated token (user context). App-only tokens are not supported by Planner bucket endpoints.
Required OAuth scope:
Tasks.ReadWrite — create and manage Planner buckets| Argument | Required | Description |
|---|---|---|
<bucket-name> | Yes | Display name of the new bucket |
--plan <plan-id> | Yes | ID of the Planner plan to add the bucket to |
--position <hint> | No | Ordering position: top (default) or bottom |
Extract bucket-name and --plan from the command arguments. The bucket name is
free-form text and can include spaces, emoji, and Unicode characters.
If --position bottom is specified, use "!" as the orderHint. Otherwise use " !".
Use InteractiveBrowserCredential or DeviceCodeCredential from @azure/identity
with scope https://graph.microsoft.com/.default.
POST https://graph.microsoft.com/v1.0/planner/buckets
Content-Type: application/json
Authorization: Bearer <token>
Request body:
{
"name": "<bucket-name>",
"planId": "<plan-id>",
"orderHint": " !"
}
The orderHint field controls the bucket's position on the board. Planner uses a
proprietary string-based ordering system:
| Desired position | orderHint value |
|---|---|
| At the top (leftmost) | " !" (space + exclamation) |
| At the bottom (rightmost) | "!" (exclamation only) |
| Between two existing buckets | "<hintA> !<hintB>" where hintA and hintB are the orderHints of the surrounding buckets |
To position a new bucket between two existing ones:
GET /planner/plans/{planId}/bucketsorderHint = hintBefore + " !" + hintAfterNote: Planner normalizes the orderHint server-side — the value returned in the response will differ from what you sent. Always use the server-returned orderHint value when ordering relative to existing buckets.
Expected successful response: HTTP 201 Created
{
"id": "FtzysDykv0-ds9-U4v-MEmQAJvkJ",
"name": "In Review",
"planId": "xqQg5sBW50SbCiiojQqDjGQAD1IN",
"orderHint": "8585506702189421664P^"
}
| HTTP Status | Cause | Resolution |
|---|---|---|
| 400 Bad Request | Missing planId or empty bucket name | Verify both name and planId are present in the request body |
| 403 Forbidden | Signed-in user is not a member of the plan's owning group | Add the user to the M365 Group that owns the plan |
| 404 Not Found | The specified plan does not exist | Verify the plan ID with GET /planner/plans/{planId} |
| 429 Too Many Requests | Graph API throttle limit reached | Read the Retry-After header and wait that many seconds before retrying |
After creation, confirm the bucket exists in the plan by calling:
GET https://graph.microsoft.com/v1.0/planner/plans/{planId}/buckets
Find the newly created bucket by its returned ID.
Display the following after the bucket is created:
Bucket created successfully
─────────────────────────────────────────────────
Bucket ID: FtzysDykv0-ds9-U4v-MEmQAJvkJ
Name: In Review
Plan ID: xqQg5sBW50SbCiiojQqDjGQAD1IN
Position: Top of board
─────────────────────────────────────────────────
Use this bucket ID with planner-task-create --bucket FtzysDykv0-ds9-U4v-MEmQAJvkJ
Files this command reads when invoked
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-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 Group/planner-setupSet up the Planner & To Do plugin — configure Azure auth and verify Graph API access to plans and task listsnpx claudepluginhub thelobbi/claude-m --plugin planner-todoOther plugins' commands for the same job