# Feature AUTOWORK-79 - Convert a project-owned type variant to a global one

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

## 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-256 | Review wording and action placement of "Convert to global variant" | Design Task | closed |  |  |  |
| AUTOWORK-277 | Notify project admins when converting a project-owned type variant to a global one | Feature | new |  | Wish List |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-256 | Design Task | Review wording and action placement of "Convert to global variant" | closed |  |  |  |  |

## 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 | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As an** instance administrator   
**I want to** convert a project-owned variant to a global one  
**so that** a variation that proved useful in one project can be reused across all projects.

## **Acceptance criteria**

  - Only an instance administrator can convert a project-owned variant to global

  - In the variants tab of a root type, or the project-specific types index page, there is a menu action item on project specific variants to convert the variant to global
    
      - Action name: "Convert to global variant"
    
      - Icon: `stack-check`
    
      - ~~If a variant was inheriting from a project-specific variant: this action is not possible. Show an error banner immediately:~~
        
          - ~~Text: "This variant currently inherits from a project-specific variant and cannot be converted to a global variant."~~ *we no longer use the inheritance mechanism*
    
      - If action is possible,danger dialog with:
        
          - Title: "Convert to global variant"
        
          - Text: "This will make this project-specific variant a global one that is available to all projects. The project admin will no longer be able to edit it."
        
          - Actions:
            
              - "Convert" (primary)
            
              - "Cancel" (secondary)
    
      - If action is possible, but the same global variant name already exists, show a modal after the confirmation dialog to let the user rename it before conversion:
        
          - Title: "Pick another name for this variant"
        
          - Text: "A global variant with this name already exists. Please choose a different name."
        
          - Text input (with inline validation to check if the new name is also already taken)
        
          - Actions:
            
              - "Convert" (primary)
            
              - "Cancel" (secondary)

  - In this same variants tab, we rename the first border box group from "Variants" to "Global variants" to help with this distinction.

  - After conversion the variant is available to all projects, the owning project keeps using it unchanged, and any reuse links it holds are preserved

  - On conversion, the variant's name must be unique among the global members of its family. If it collides, a dialog is opened to change the display name, and the conversion completes once the name is unique

  - The conversion is somehow recorded - Handled separately in <mention class="mention" data-id="79600" data-type="work_package" data-text="##AUTOWORK-277" data-display-id="AUTOWORK-277">\#\#AUTOWORK-277</mention>

## **Permissions and visibility considerations**

  - **To whom is this feature visible?** Instance administrators only.

  - **When is it not visible?**
    
      - Feature flag turned off
    
      - non-admin users
    
      - there are no project-owned variants to promote.

## **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" style="border-bottom:0px none currentcolor;border-left:1px solid rgb(223, 226, 229);border-right:1px solid rgb(223, 226, 229);border-top:1px solid rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p"><strong>English</strong></p></th><th class="op-uc-table--cell op-uc-table--cell_head" style="border-bottom:0px none currentcolor;border-left:1px solid rgb(223, 226, 229);border-right:1px solid rgb(223, 226, 229);border-top:1px solid rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p"><strong>German</strong></p></th><th class="op-uc-table--cell op-uc-table--cell_head" style="border-bottom:0px none currentcolor;border-left:1px solid rgb(223, 226, 229);border-right:1px solid rgb(223, 226, 229);border-top:1px solid rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p"><strong>French (verify)</strong></p></th><th class="op-uc-table--cell op-uc-table--cell_head" style="border-bottom:0px none currentcolor;border-left:1px solid rgb(223, 226, 229);border-right:1px solid rgb(223, 226, 229);border-top:1px solid rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p"><strong>Spanish (verify)</strong></p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Promote to global</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Global verfügbar machen</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Promouvoir au niveau global</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Promover a global</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">This variant will become available in all projects</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Diese Variante wird für alle Projekte verfügbar gemacht</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Ce sous-type deviendra disponible dans tous les projets</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Este subtipo estará disponible en todos los proyectos</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Rename to resolve a naming conflict</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Zur Auflösung eines Namenskonflikts umbenennen</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Renommer pour résoudre un conflit de nom</p></td><td class="op-uc-table--cell" style="border-color:rgb(223, 226, 229);padding:6px 13px;"><p class="op-uc-p">Renombrar para resolver un conflicto de nombre</p></td></tr></tbody></table></figure>

## **Out of scope**

  - Reverse demotion of a global variant back to project-owned

  - Bulk conversion of many variants at once

  - A project-admin request workflow for conversion (instance administrators perform it directly)
