# Feature AUTOWORK-155 - Handle the default status within a workflow

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

## Planning

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

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| AUTOWORK-183 | Can we get rid of the GLOBAL default status? | needs clarification |  |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-260 | Define default status per workflow | Design Task | new |  |  |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-260 | Design Task | Define default status per workflow | new |  |  |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## 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

**Context**

There are some cases where it makes sense for admins to receive more info regarding the statuses and workflows they have configured. For example, if a status has no outgoing transitions activated, switching to that status results in a user being stuck.&nbsp;

These cases should result in a warning, prevent saving of the badly configured workflow, or something similar.

Known cases:

*   We have a global(!) default status, that every workflow needs to be accessible from
    
*   We can have statuses that never allow any transitions, so that users are stuck
    

**Acceptance criteria:**

*   Currently a default status is configurable globally. A default status should be configurable per workflow setting within the work package configuration
    
    *   We move the default status into the edit dialog of a workflow. This is also shown on creation of a new workflow
        
        *   If possible, we will extend the matrix to always show the default status
            
    *   We keep the global status just for having it as a preselected option for cases where it cannot directly be connected to a workflow (boards, etc.), and keep existing behaviour as is
        

**Outcome:**  
\- No warning banner on save  
\- No inline error message for missing transitions

Options:

*   Option 1: Regardless of workflow config we allow transition to the default status
    
    *   Possible problem: If the default transition doesn&#x27;t a transition the user would be stuck too.
        
*   Option 2: Show an inline error message and a banner, if a status has no transitions (e.g.  banner: Saving unsucessful, missing transitions, inline: at least one transition is required)
    
    *   error validation before form reload, so pre-selections aren&#x27;t lost
        
*   In either case self-transitions (e.g. new to new) should be checked and disabled
    

<br>
