# Feature AGILE-126 - Migrate existing positions to scope of project_id, sprint_id

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Target versions | 17.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Jens Ulferts |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an agile user  
**I want to** have the existing work package order migrated keeping as much of the order as possible  
**so that** I can start working without interruption

**Acceptance criteria**

*   The existing `position` column is reused so that the scope of `project_id, sprint_id` is applied to the existing work packages that used to be grouped by `project_id, version_id`
    

**Technical notes**

*   Use the `WorkPackages::RebuildPositionsService` service
    
*   ~~Add a unique contraint on~~ `~~project_id, sprint_id~~` This was attempted to be done but drag and drop, creation and update of work packages failed afterwards.
