# Implementation AGILE-278 - Move selected work packages atomically

Project: Stream agile
Status: closed
URL: https://community.openproject.org/work_packages/AGILE-278

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer | Julia Racsko |
| Developers | Alexander Coles |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 18.0.0 |
| Module | Modules and project features / Backlogs, Frontend components and Primer design system |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-361 | Add batch selection to Backlogs cards | closed |  |

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-362 | Make Backlogs destination actions batch-aware | closed |  |
| AGILE-396 | Add a stacked preview for multiple drag-and-dropped items in the backlog | closed |  |

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date | 2026-08-18 –  |
| % Complete | 100% |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

## What to build

Move a Backlogs batch as one ordered, atomic operation. Dragging a selected work package moves the complete selection through a collection move contract; dragging an unselected work package replaces the selection and moves that work package alone.

## Acceptance criteria

- [ ] The moved batch is resolved in live top-to-bottom Backlogs order and becomes one contiguous block at the destination while preserving that order.
- [ ] Selected work packages are excluded when resolving the destination predecessor; top, explicit predecessor, and append placement remain distinguishable.
- [ ] The collection request accepts ordered work package IDs and rejects blanks, duplicates, missing work packages, invalid targets, stale predecessors, or a predecessor contained in the batch.
- [ ] Every work package is re-authorized. Any invalid or unauthorized member rejects the complete request without partial movement.
- [ ] The batch is persisted within one outer transaction. A failure rolls back every work package and successful move hooks run only after the complete batch commits.
- [ ] The client performs one optimistic block movement, suppresses effective no-ops, locks concurrent interaction while saving, and uses one guarded rollback boundary.
- [ ] Success clears batch selection. Failure preserves it and restores verified positions; a concurrent update that prevents safe rollback tells the user to check current positions.
- [ ] Same-list success skips reload only after exact persisted placement is verified. Cross-list or divergent results reconcile the Backlogs frame, and existing singular callers remain compatible.
