# Feature AUTOWORK-69 - Reuse a type's workflow

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

## 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-125 | How does switching workflow reuse work? | decided | A banner is shown in wizard/edit that allows explicit changing through a dialog |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-86 | Build mode reuse UI and data model | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-87 | Runtime resolution of linked workflows | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-88 | Implement one-time copy on switching to Independent mode | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-89 | Read-only workflow reference for Linked types | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-90 | Cycle detection for linked workflows | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-112 | Move workflows as a tab under type edit | Feature | closed |  | 18.0.0 |  |
| AUTOWORK-127 | Add "start from empty" option when switching to independent mode | Implementation | closed |  | 18.0.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-161 | Bug | User can attempt to create loop/interdependency between types and variants | tested |  | 18.0.0 |  | Administration / Type/Variants and Workflows |
| AUTOWORK-169 | Bug | Role selector glitches when opening on bottom of screen | confirmed | OP Dev Dream Team | Wish List |  | Administration / Type/Variants and Workflows, Frontend components and Primer design system |

## 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=654-49935&t=hn3sj0ZicbUUSkdZ-4 |
| 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

**As an** administrator configuring any work package type (sub-type or plain type)  
**I want to** link a type's workflow to a source type or make it independent  
**so that** I can reuse the same exact workflow across many types without copying, or own my own workflow.

## Acceptance criteria

  - For any type, I can set its workflow to **Linked** (choosing a source type) or **Independent**. 

  - A sub-type defaults to Linked to its parent

  - A Linked workflow resolves to its source at runtime; when I change the source's workflow, every linked type reflects it immediately

  - When I switch a workflow to Independent, the system copies the current source's workflow once as a starting point and then severs the link

  - The workflow matrix of a Linked type is read-only; I edit the owning (Independent) type instead, and the admin shows which source it is linked to

  - The system prevents me from creating a cyclic dependency between workflow sources

  - Linking a workflow never changes the type's display name or color

## Permissions and visibility considerations

  - **To whom is this feature visible?** Users who can manage workflows or sub-types (admins; later project admins via `:manage_subtypes` for project-owned sub-types).

  - **When is it not visible?** Feature flag turned off, users without management rights. Linked types are read-only in the workflow matrix.

## 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">Workflow</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Workflow</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Workflow</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Flujo de trabajo</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Linked to {{type}}</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Verknüpft mit {{type}}</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Lié à {{type}}</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Vinculado a {{type}}</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><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Use independent workflow</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Unabhängigen Workflow verwenden</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Utiliser un workflow indépendant</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Usar un flujo de trabajo independiente</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Copy workflow from type (one time)</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Workflow einmalig von Typ kopieren</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Copier le workflow depuis un type (une fois)</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Copiar el flujo de trabajo de un tipo (una vez)</p></td></tr></tbody></table></figure>

## Out of scope

  - Adding a "Extend" reuse mode (only Linked or Independent for now).

  - Merging or partially overriding a linked workflow.

  - Defining multiple workflows per (sub-)type
