Skip to content

Bug/74521 work package on closed sprint cannot be edited#22986

Open
ulferts wants to merge 2 commits intorelease/17.4from
bug/74521-work-package-on-closed-sprint-cannot-be-edited
Open

Bug/74521 work package on closed sprint cannot be edited#22986
ulferts wants to merge 2 commits intorelease/17.4from
bug/74521-work-package-on-closed-sprint-cannot-be-edited

Conversation

@ulferts
Copy link
Copy Markdown
Contributor

@ulferts ulferts commented Apr 29, 2026

Ticket

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

What are you trying to accomplish?

  • Work packages can still not be assigned to finished/completed sprints
  • BUT if they are assigned to a finished sprint, modifying other attributes does not cause a validation error.
  • Consolidate validations on sprints in the work package contract into a single one.
  • Drive by fix: Sprints that are completed/finished should still be available via the sprints by project api so that one can e.g., filter by them.

The PR extracts the assignability of sprints into a scope.

Merge checklist

  • Added/updated tests

@ulferts ulferts force-pushed the bug/74521-work-package-on-closed-sprint-cannot-be-edited branch from d61ccdc to e322e8d Compare April 29, 2026 09:36
@ulferts ulferts changed the base branch from dev to release/17.4 April 29, 2026 10:12
By extracting the assignable scope from the contract, the setup becomes simpler. This then lead to merging two validations into one.

It also contains a drive by fix in the sprints api where only non completed sprints would be visible.
@ulferts ulferts force-pushed the bug/74521-work-package-on-closed-sprint-cannot-be-edited branch from e322e8d to 14b9d26 Compare April 29, 2026 10:28
@ulferts ulferts marked this pull request as ready for review April 29, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant