# Bug AGILE-185 - Work packages can be assigned to closed sprints

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Backlogs |
| Target versions | 17.4.0 |
| Observed in versions | 17.3.0 |
| Sprint | Sprint 1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.3.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Tobias Dillmann |
| 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

Bug 1:

1.  Login and go to a project/Backlog in two different tabs

2.  Make sure you have an active sprint

3.  Click on more menu in tab 1

4.  Select Complete sprint

5.  In tab 2, drag and drop a wp from backlog to the completed sprint

6.  Reload the page

Bug 2:

1.  Have a closed sprint

2.  Go to a work package page

3.  Open the dropdown for sprints

### What is the buggy behavior?

Bug 1:

  - The wp disappears from the page as the sprint is also removed

Bug 2:

  - Closed sprints are displayed in the list to select from

  - Selecting one of the closed sprints does not lead to an error

### What is the expected behavior?

Bug 1 & 2:

1.  It should not be possible to move the wp into an already completed sprint

2.  Closed sprints should not be available options for assignment.

### 

### 

### Environment information

**Core build**

[7bed6678ea8d2bc9faa321c3e4b0c1495fec1a5e](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2F7bed6678ea8d2bc9faa321c3e4b0c1495fec1a5e)

**Product version**

[1066bed7b1b4ed307bfeac4168b48ad668a6c1e6](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2F1066bed7b1b4ed307bfeac4168b48ad668a6c1e6)

**Core version**

OpenProject 17.3.0

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
