Skip to content

Implementation/72849 make drag and drop work between sprints and version backlogs#22287

Merged
EinLama merged 12 commits intodevfrom
implementation/72849-make-drag-and-drop-work-between-sprints-and-version-backlogs
Mar 13, 2026
Merged

Implementation/72849 make drag and drop work between sprints and version backlogs#22287
EinLama merged 12 commits intodevfrom
implementation/72849-make-drag-and-drop-work-between-sprints-and-version-backlogs

Conversation

@EinLama
Copy link
Contributor

@EinLama EinLama commented Mar 10, 2026

Ticket

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

Note: We have a name clash. With Sprint, I mean the legacy Sprint inheriting from Version. For the new style sprint, I will explicitly write Agile::Sprint.

Drag and drop works:

  • From one Sprint to another
  • From one Agile::Sprint to another
  • From Agile::Sprint to Sprint
  • From Sprint to Agile::Sprint

When moving a Story from any sprint type to another, we try to retain the Version assigned to the Work Package. The rule is: if the assigned Version is not configured to be used_as_backlog?, we can keep the Version association. However, if the Version poses as backlog, we must remove the association, or else the Story would exist in an Agile::Sprint and a Sprint at the same time.

The feature flag is not checked within the stories controller. As you can only move a Story to an already existing Agile::Sprint, I think this is acceptable. Having the feature enabled is required to create an Agile::Sprint. Modifying one should be allowed even without the flag.

Caveats

Work Packages do not consider and update their position with Agile::Sprint in mind. Hence, you can drag and drop to an Agile::Sprint - but once the Work Package is in an Agile::Sprint, the position will not work as expected. This issue is out of scope for the current PR and will be handled in WP 73093

@EinLama EinLama marked this pull request as ready for review March 10, 2026 15:40
@EinLama EinLama force-pushed the implementation/72849-make-drag-and-drop-work-between-sprints-and-version-backlogs branch 2 times, most recently from 7ddda9f to 06bd3a0 Compare March 12, 2026 08:31
@EinLama EinLama force-pushed the implementation/72849-make-drag-and-drop-work-between-sprints-and-version-backlogs branch from 56ec3b8 to 9f37393 Compare March 12, 2026 09:48
Copy link
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.

Overall works as expected, I found a few code structure related issues and one permission check issue, nothing serious.

@EinLama EinLama requested a review from dombesz March 13, 2026 14:41
@EinLama EinLama merged commit d17a638 into dev Mar 13, 2026
16 of 18 checks passed
@EinLama EinLama deleted the implementation/72849-make-drag-and-drop-work-between-sprints-and-version-backlogs branch March 13, 2026 17:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 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