# Feature AUTOWORK-194 - Define default status on creation for a type

Project: Stream Workflows & Automations
Status: in specification
URL: https://community.openproject.org/work_packages/AUTOWORK-194

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / Type/Variants and Workflows |
| Feature Flag |  |
| Requires doc change | Yes |
| 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 |  |
| 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 |  |
| Labor costs |  |

## Description

**As** a administrator  
**I want to** define what status is the first one for a type  
**so that** it does not end up with a default status which does not fit in the workflows defined for that type

**Acceptance criteria**

  - In Administration \> Work Packages \> Types, after selecting a type there is an additional tab called "Statuses"

  - The type statuses tab shows a drop down to select the default status to be used
    
      - Label: "Default status"
    
      - Setting a value is mandatory
    
      - Values:
        
          - First value is "Default (\<*current default*\>)" and is selected by default
        
          - other values are extracted from the workflows defined. Only those which can be transitioned to with at least one role are available.
        
          - if no workflows are defined (every checkbox unchecked for every role for that status in the workflows pages), only "Default (\<*current default*\>)" is available
    
      - hint text: "New work packages of this type are by default set to this type. The selected status cannot be read-only. Only statuses enabled in workflows are available."

  - In Administration \> Work Packages \> Types
    
      - There is an additional column "Default status". The value is the active default status, either from system default or from type default.

  - In Administration \> Work Packages \> Status(es)
    
      - when editing or creating a status
        
          - the hint text for "Default status" checkbox was "New work packages are by default set to this type. They cannot be read-only.". It was wrong: it mentions "type" instead of "status".
        
          - The hint text is updated to "New work packages are by default set to this status, unless overridden in the type setting. They cannot be read-only."
    
      - when deleting a status
        
          - if that status was used as default status of a type, then its value is reset to the default, like if it had never been set.

  - In Administration \> Work Packages \> Workflow(s)
    
      - If after workflows update / copy / whatever the default status of a type is not enabled anymore, then its value is reset to the default, like if it had never been set.

**Technical notes**

  - \-

**Permissions and visibility considerations**

  - like for other edition of Types, only admins can edit the default value of a type.

**Translation considerations**

  - *Key terms and phrases in the key languages* 

**Out of scope**

  - \-

*Set the* **To be informed/consulted teams** *field to include all teams necessary to be informed of the changes.*
