# Implementation AGILE-363 - Add positional actions for batch selections

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

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| 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-362 | Make Backlogs destination actions batch-aware | closed |  |

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-364 | Apply batch selection to contextual ActionMenus | closed |  |

## Estimates

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

## Details

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

## Description

## What to build

Make the existing **Move to position** submenu batch-aware. Its Top, Up, Down, and Bottom actions operate on a selected block when it is one card or one contiguous selection in a single Backlogs list. Availability and placement are resolved on the client, from the loaded rows, so the move stays optimistic and the resolver can be reused by other sortable lists.

## Acceptance criteria

- [ ] The server renders the **Move to position** items for a scope whose members share one list and may be reordered there. The client presents them only for one card or one contiguous selected block among the loaded rows.
- [ ] Confined cards remain eligible because the action reorders within their current list.
- [ ] Sparse same-list and cross-list selections omit **Move to position** rather than falling back to moving only the invoking card.
- [ ] A single pure block resolver is used for both availability and execution. It returns a collection placement or an explicit unavailable result for Top, Up, Down, and Bottom.
- [ ] Up and Down move the block past exactly one adjacent loaded, unselected work package. Top and Bottom move it to the loaded addressable list boundary after conceptually removing the selected rows.
- [ ] Selected work packages preserve their live top-to-bottom order, are never used as predecessor candidates, and an effective no-op sends no request.
- [ ] A direction that would cross work packages hidden by truncation is unavailable. If no direction can produce an effective move, the submenu is omitted.
- [ ] Execution reuses the optimistic atomic batch move contract and its guarded rollback, server reconciliation, announcements, and selection outcomes.
- [ ] Single-item **Move to position** on other sortable lists keeps its current behavior: the block resolver extends the existing client-side availability and placement (`resolveMoveAvailability`, `resolveDirectionalPreviousItemId`) without changing their results for a one-card scope.

## Sequencing notes

  - Rebuilt from `dev` on top of <mention class="mention" data-id="AGILE-362" data-type="work_package" data-text="#AGILE-362">#AGILE-362</mention>. Carries over the block resolver and block move from the first implementation; drops its menu-gating code, which coupled the resolver to the client-side menu projection.
  - Uses the shared four-direction move items from <mention class="mention" data-id="DREAM-775" data-type="work_package" data-text="#DREAM-775">#DREAM-775</mention> so other sortable lists can adopt the same submenu.
