# Bug JIM-195 - Statuses not properly cleaned up when reverting import

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-195

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions | 18.0.0 |
| Observed in versions | 17.7.0 |
| Sprint | Sprint 18.11.-24.11.2026 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.7.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alfonso Mancilla |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Use a clean instance where nothing has never been imported.
    
    1.  Make sure you have no status named &quot;In progress&quot;, &quot;To do&quot; or &quot;In review&quot;
        
    2.  Make sure you have no type named &quot;Task&quot;
        
    3.  (Easiest option is to have an instance seeded in another language than English)
        
2.  Run jira migrator to import from our jira-dc Jira instance, and import project &quot;Project demo&quot;
    
    1.  it will import and create 1 project, 5 issues, some users, 1 type, and 3 statuses (In progress&quot;, &quot;TO DO&quot; and &quot;In review&quot;)
        
3.  At the end of the import, select Revert
    
    1.  ✅ The project, work packages, users and type are all deleted correctly
        
    2.  :❌But some statuses remain
        

### What is the buggy behavior?

*   The statuses &quot;In progress&quot; and &quot;TO DO&quot; are still present
    
*   Surprisingly, the status &quot;In review&quot; is properly deleted
    

### What is the expected behavior?

1.  All statuses imported during that run should be deleted
    
    1.  Idea for QA: once this is fixed, try importing in a clean one like above, leaving it the &quot;need to be confirmed or reverted&quot; state, then start another import run with another project which uses the same 3 statuses and complete the import. This second import did not need to create the statuses because they were already created by the first run. Now revert the first run. Will it delete the &quot;Task&quot; type and the statuses?
        

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    

**OpenProject version**

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">scw-fr-vips1.openproject.eu</p></td><td class="op-uc-table--cell"><p class="op-uc-p">17.7.3</p></td><td class="op-uc-table--cell"><p class="op-uc-p">saas-2026.08.17-09h03m28s-release-17.7-57b003f</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Mon, 17 Aug 2026 08:51:19 GMT</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/openproject/commit/57b003f5297e92e58b4b24649af70d25aa276aaf">57b003f5297e</a></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/saas-openproject/commit/de9aee83c74475ef34989d984b1d21ab42405277">de9aee83c744</a></p></td></tr></tbody></table></figure>

**Browser**

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

**Operating System**

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

**Language**

French
