feat: use v3 API to move task home list#41
Merged
krodak merged 1 commit intokrodak:mainfrom Apr 3, 2026
Merged
Conversation
989a4da to
4e17590
Compare
Contributor
Author
|
Current code uses the v2 New proposal: use v3 API The inferred status mapping (pick the first open status) is naive, but for my use-case appropriate. Could be fleshed out further at some point, though I suspect the status quo is generally useful. Ran the linter this time -- all clear! EDIT: |
The v2 API only supports adding/removing tasks from additional lists —
it cannot change a task's home list, which caused "Task home list cannot
be altered" errors when using `cup move --to --remove`.
Switch to the v3 `PUT /workspaces/{id}/tasks/{id}/home_list/{id}`
endpoint when both flags are provided. Automatically builds
status_mappings when the source status doesn't exist in the destination
list by mapping to the first open status.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4e17590 to
ca72a12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Task home list cannot be alterederrors when usingcup move --to <list> --remove <list>PUT /workspaces/{id}/tasks/{id}/home_list/{id}endpoint when both--toand--removeare providedstatus_mappingswhen the task's current status doesn't exist in the destination list, mapping to the first open statusTest plan
🤖 Generated with Claude Code