# Feature AUTOWORK-68 - Administrators can define and manage global type variants

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

## Planning

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

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| AUTOWORK-76 | Can we reuse functionality from other variants, or only root types? | decided | Linking is possible unrelated to the hierarchy, for root and sub-types right away |
| AUTOWORK-102 | How do type variants affect project-specific custom field selection? | decided | We will automatically migrate to project-specific variants after FND-183 is implemented |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-80 | Add feature flag "subtypes" | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-81 | Remove feature flag for type variants | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-82 | Add hierarchy to types table | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-83 | Inherit core settings | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-84 | CRUD type variants without additional functionality | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-111 | Put guards in Operations to enable types | Implementation | closed |  | 18.0.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-124 | Bug | Types index limited to first page   | closed |  | 17.8.0 |  | Administration, Modules and project features / Work packages |

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/Q5gKSjtWQpAz4wjArQ2U5R/Fundamentals--Sub-types?node-id=398-29188 |
| 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 | OP Dev Sirius Team |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work | 15d 0h · Σ 15d 0h |
| Labor costs |  |

## Description

This feature covers **global** type variants, managed by instance administrators and available to every project. 

*Project-owned variants, the project permission, in-project visibility isolation feature* <mention class="mention" data-id="76571" data-type="work_package" data-text="##FND-110" data-display-id="FND-110">\#\#FND-110</mention>

**As an** OpenProject  administrator  
**I want to** create and manage global variants under an existing work package type  
**so that** I can offer instance-wide variations of a type that present as the parent but can behave differently.

## Acceptance criteria

  - I can create a global variant under any root type

  - A variant cannot itself have variant. The application enforces a single level

  - A variant cannot be its own parent, and standard types cannot be variant or re-parented

  - A new variant is independent except for its name
    
      - Related features  <mention class="mention" data-id="AUTOWORK-69" data-type="work_package" data-text="##AUTOWORK-69">##AUTOWORK-69</mention>  <mention class="mention" data-id="AUTOWORK-70" data-type="work_package" data-text="##AUTOWORK-70">##AUTOWORK-70</mention>

  - A variant appears in administration nested under its parent and labelled with its composite name ("Bug: Hardware")

  - A variant inherits its core settings from the parent and cannot edit them: color, `is_milestone`, `is_in_roadmap`, and `is_default` are shown read-only and always follow the parent

  - A variant carries only its own variant label, used in administration, and the composite name

  - A variant's display name is always the parent name

  - The system prevents creating a cyclic dependency between reuse sources

  - The entire capability is hidden and inert unless the `work_package_subtypes` feature flag is enabled

## Permissions and visibility considerations

  - **To whom is this feature visible?** Instance administrators (the existing global type administration).

  - **When is it not visible?**
    
      - Feature Flag turned off
    
      - all non-admin users.

## Translation considerations

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">English</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">German</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">French (verify)</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Spanish (verify)</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Variant</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Variante</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Parent type</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Übergeordneter Typ</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Type parent</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Tipo principal</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Source type</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Quelltyp</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Type source</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Tipo de origen</p></td></tr></tbody></table></figure>

  - Document the hierarchical name (`"TYPE: SUBTYPE"`) used in admin, possibly on hover, and API.

## Out of scope

  - Project-owned variants, the `:manage_subtypes` project permission (<mention class="mention" data-id="76548" data-type="work_package" data-text="##FND-106" data-display-id="FND-106">\#\#FND-106</mention>).

  - Per-aspect reuse behavior beyond the default parent links <mention class="mention" data-id="76543" data-type="work_package" data-text="##FND-101" data-display-id="FND-101">\#\#FND-101</mention>, <mention class="mention" data-id="76544" data-type="work_package" data-text="##FND-102" data-display-id="FND-102">\#\#FND-102</mention>

  - Project activation and the one-per-family rule <mention class="mention" data-id="76548" data-type="work_package" data-text="##FND-106" data-display-id="FND-106">\#\#FND-106</mention>

  - Display routing across the product <mention class="mention" data-id="AUTOWORK-73" data-type="work_package" data-text="##AUTOWORK-73">##AUTOWORK-73</mention>
