Skip to content

Bug/73750 work packages can be assigned to closed sprints#22812

Merged
dombesz merged 8 commits into
devfrom
bug/73750-work-packages-can-be-assigned-to-closed-sprints
Apr 22, 2026
Merged

Bug/73750 work packages can be assigned to closed sprints#22812
dombesz merged 8 commits into
devfrom
bug/73750-work-packages-can-be-assigned-to-closed-sprints

Conversation

@EinLama
Copy link
Copy Markdown
Contributor

@EinLama EinLama commented Apr 17, 2026

Ticket

https://community.openproject.org/wp/73750

What are you trying to accomplish?

  • exclude completed sprints from work package details page
  • exclude completed sprints from "move to sprint" menu
  • do not allow a WP to be assigned to a closed sprint, even if that sprint is offered (due to race condition)
  • write specs
  • resolve TODOs

Screenshots

What approach did you choose and why?

Added a check to the contract similar to what is done for the versions.

Updating the contract and using the visible scope lead to necessary view_sprints permissions to get the assignable sprints.

Merge checklist

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

@EinLama EinLama force-pushed the bug/73750-work-packages-can-be-assigned-to-closed-sprints branch 6 times, most recently from c25813d to 4772e71 Compare April 21, 2026 13:49
@EinLama EinLama marked this pull request as ready for review April 21, 2026 13:49
@dombesz dombesz force-pushed the bug/73750-work-packages-can-be-assigned-to-closed-sprints branch from 4772e71 to 0fceb23 Compare April 22, 2026 19:04
Copy link
Copy Markdown
Contributor

@dombesz dombesz left a comment

Choose a reason for hiding this comment

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

Both bugfixes are working nicely.👍

Edit: Merging since the CI failings are intermittent only.

@dombesz dombesz merged commit a68a428 into dev Apr 22, 2026
16 of 17 checks passed
@dombesz dombesz deleted the bug/73750-work-packages-can-be-assigned-to-closed-sprints branch April 22, 2026 19:41
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 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