# Feature AUTOWORK-152 - Allow deletion of variants still in use

Project: Stream Workflows & Automations
Status: tested
URL: https://community.openproject.org/work_packages/AUTOWORK-152

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-265 | Dialog/page for deletion of variants still in use | Design Task | closed | Parimal Satyal |  |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-265 | Design Task | Dialog/page for deletion of variants still in use | closed | Parimal Satyal |  |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / Type/Variants and Workflows |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Community (COM) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead | Oliver Günther |
| Developers | Mir Bhatia |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** an OpenProject admin  
**I want to** be able to delete a variant that is still in use  
**so that** I can easily restructure a messed up installation without lots of manual work.

**Acceptance criteria**

  - When deleting a variant, a migration process is started, bulk editing the existing work packages to another variant before the variant is deleted

  - There is a danger zone explaining the implications of the deletion
    
      - Attributes may be removed, and lost
    
      - Statuses may need to be changed, or Status reset to the default status
    
      - This uses the same dialog content as the switching preview <mention class="mention" data-id="76565" data-type="work_package" data-text="##FND-109" data-display-id="FND-109">\#\#FND-109</mention>
