Skip to content

fix: hide work items with Removed state from Kanban board (#277)#379

Open
akash2017sky wants to merge 3 commits into
mainfrom
fix/277-hide-removed-work-items
Open

fix: hide work items with Removed state from Kanban board (#277)#379
akash2017sky wants to merge 3 commits into
mainfrom
fix/277-hide-removed-work-items

Conversation

@akash2017sky
Copy link
Copy Markdown
Collaborator

Summary

  • The Kanban board was bucketing Removed-category states into the Closed column. Filter them out at the source so removed work items never appear on the board.
  • getStandupData skips Removed when building the state lists used in the standup WIQL queries.
  • Drop the now-unreachable Removed: 'Closed' fallback in the standup route.

Fixes #277.

Test plan

  • Open /kanban against an org with a project that has a Removed state — confirm no removed items appear in any column.
  • Confirm Closed column still shows items in Resolved/Completed categories from the last 7 days.
  • Confirm "Group By: Person" view also excludes removed items.
  • Confirm the existing Removed tickets sidebar link (which uses a different endpoint) is unaffected.

🤖 Generated with Claude Code

Ayush and others added 2 commits May 10, 2026 15:56
Removed-category states were being bucketed into the Closed column on the
Kanban board. Skip them when building the state lists for the standup
query so they're never fetched, and drop the corresponding fallback
mapping in the standup route.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Filters out Azure DevOps work items in the Removed state category so they no longer appear anywhere on the Kanban/standup board, addressing issue #277 where Removed items were previously being bucketed into Closed.

Changes:

  • Exclude Removed state-category entries when building the standup WIQL state lists, preventing Removed items from being queried at all.
  • Remove the now-unreachable Removed: 'Closed' category fallback mapping in the standup API route.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/devops.ts Updates getStandupData to skip Removed categories when constructing queryable state lists, ensuring Removed items are never fetched for the board.
src/app/api/devops/standup/route.ts Drops the Removed fallback column mapping since Removed items are filtered out upstream before column resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Hide work items with Removed Status in Work Items list

3 participants