# Bug AGILE-246 - Inconsistent handling of "Definition of Done"

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Backlogs |
| Target versions | 17.5.0 |
| Observed in versions |  |
| Sprint |  |
| 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 | OP Dev Polaris Team |
| 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.  Add a non-closed status to the Definition of done in the Backlogs configuration of a project; Example:
    
    1.  Given statuses new, in progress, developed and closed
    
    2.  new, in progress and developed are "open" statuses
    
    3.  closed is a "closed" status
    
    4.  In the backlogs configuration developed and closed are selected for "Definition of Done"

2.  Create two sprints A and B

3.  Add a work package into sprint A

4.  Start the sprint

5.  Move the work package to a non-closed status in the DoD (e.g. "developed" above)

6.  Complete the sprint

7.  Confirm modal to move "work in progress" / "not completed" work packages to sprint B

### What is the buggy behavior?

  - The work package is moved to the next sprint

### What is the expected behavior?

  - The work package is not moved out of the sprint

Rationale:

  - The WP is done according to the project's DoD, so it does not need to be continued next sprint

  - Wording in configuration and confirmation dialog indicate that the DoD statuses should be respected, assuming that "not completed" is the opposite of "completed" (see screenshots below)

### Screenshots

Configuration UI. Notably this is about statuses that are **"treated as completed"**:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920999/content"> 

Confirmation dialog that advertises to move **"not completed"** work packages to a new sprint:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920997/content">

### 

### Environment information

**OpenProject version**

Not sure whether the feature has been officially released already. Reproduced on Community (17.4 preview) and on dev (before 17.5).
