# Bug AGILE-244 - Closed work packages are still considered to be part of the bucket.

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.5.0 |
| Observed in versions |  |
| Sprint | Sprint 3 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Attila Dombi |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Have 2 work packages in a backlog bucket.
    
2.  Close the First work package in the list.
    
3.  Open the &quot;Move&quot; menu for the second work package.
    
4.  Observe the possible move actions.
    

### What is the buggy behavior?

*   There is a &quot;Move up&quot; and &quot;Move to top&quot; action present.
    

### What is the expected behavior?

1.  There should be no &quot;Move up&quot; and &quot;Move to top&quot; actions, because the bucket has only 1 work package displayed.
    

### Note

This issue can be reproduced with having excluded work package types in the project too. https://github.com/opf/openproject/pull/23103/changes#diff-4ebb1691afbdf18567905f37173293d146bcbd1fb3d58bdba7ac2fadeffca275

### Technical notes:

*   Use the `prev_id` when moving work packages up and down.
