Skip to content

Add sprint and task type filters to automatic sprint task board creation#22177

Merged
myabc merged 2 commits intofeature/69139-sprint-task-boardsfrom
copilot/sub-pr-22086
Mar 5, 2026
Merged

Add sprint and task type filters to automatic sprint task board creation#22177
myabc merged 2 commits intofeature/69139-sprint-task-boardsfrom
copilot/sub-pr-22086

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

Ticket

Original PR: #22086
Addresses: #22086 (comment)

What are you trying to accomplish?

TaskBoards::CreateService was creating a status board with queries scoped only to the project — showing all work packages grouped by status, rather than those belonging to the specific sprint and task type. This makes the board useless as a sprint task board.

What approach did you choose and why?

Added a sprint: keyword argument through the service's public interface (ensure, call, create) and added two filters to every query created by create_queries:

query.add_filter("version_id", "=", [sprint.id.to_s])  # restrict to sprint
query.add_filter("type_id",    "=", [Task.type.to_s])   # restrict to configured task type

The controller already had @sprint available — it just wasn't being passed to the service. No structural changes were needed beyond threading the parameter through and applying the filters.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: myabc <755+myabc@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 4, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Copilot AI changed the title [WIP] WIP Address feedback on automatic sprint task board creation Add sprint and task type filters to automatic sprint task board creation Mar 4, 2026
Copilot finished work on behalf of myabc March 4, 2026 01:15
@myabc
Copy link
Contributor

myabc commented Mar 4, 2026

@copilot Remove type filter .. it's not needed.

@myabc myabc marked this pull request as ready for review March 5, 2026 03:47
Copilot AI review requested due to automatic review settings March 5, 2026 03:47
@myabc myabc merged commit d9d757d into feature/69139-sprint-task-boards Mar 5, 2026
3 checks passed
@myabc myabc deleted the copilot/sub-pr-22086 branch March 5, 2026 03:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants