fix(ploeg): route ClickUp work by tags and withdraw it when the task closes #170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/ploeg-clickup-tags-and-close"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ClickUp provider dropped tags when it decoded a task, so a fetched
Work Item had no labels. Because the read succeeded, the resolver took the
empty list as authoritative and chose the board default, ignoring a
repo/* tag. ClickUp also normalized every taskStatusUpdated delivery to
an update, so closing a task never withdrew queued work that had not
started, unlike Vikunja.
FetchItem, FetchExecutionItem and BoardStatus now share one task read
that carries the tag names as labels, so routing, operator source checks
and gate tracking see the same tags and apply the Vikunja label rules.
A taskStatusUpdated delivery becomes a closure only when an authoritative
read of the task finds a status of type closed or done; with no API
token, or when the read fails, it stays an update. Closure then follows
the existing policy: unstarted queued work is withdrawn as
withdrawn_closed and started work runs on.
A taskStatusUpdated event becomes a closure only when a fresh task read says closed/done; no token, a failed read or an empty status type stays an update. Archived tasks are not treated as closed. Costs one extra GET per status change.
Verified with
mise run verifyon the pinned toolchain (all gates passed).Ticket: https://vikunja.webgrip.dev/tasks/1754
🤖 Generated with Claude Code