# Feature AUTOWORK-276 - Allow mandatory work package fields per type

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-345 | Bug | User can make a field mandatory and deactivate it on the same form | merged |  | 18.0.0 |  | Administration / Type/Variants and Workflows |
| AUTOWORK-349 | Bug | Project admins that are not instance admins cannot make a field mandatory for a variant | rejected |  | 18.0.0 |  | Administration / Type/Variants and Workflows |
| AUTOWORK-350 | Bug | Enabled field toggle says 'Hidden' instead of 'Off' when the field is disabled + missing 'On' label when it's enabled | tested |  | 18.0.0 |  | Administration / Type/Variants and Workflows |
| AUTOWORK-351 | Bug | Accumulation of labels of type/variant form wizard step look stuffy on regular sized screens | in development | Mir Bhatia | 18.0.0 |  | Administration / Type/Variants and Workflows |

## 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 | https://www.figma.com/design/Q5gKSjtWQpAz4wjArQ2U5R/Fundamentals--Type-variants--sub-types-?node-id=2430-223492 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager | Sonita Soth |
| Feature Lead | Oliver Günther |
| Developers | Oliver Günther |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

As an admin I want to define if a field is mandatory for a specific type or variant so that the same field can be required for some types and optional for others without having to create separate field types.

Acceptance Criteria

*   admin can set a work package custom field&#x27;s mandatory status individually per type, extracting the existing required property of custom fields
    
*   The Types/Variants form tab is extended
    
    *   Required fields are shown with a &quot;Required&quot; label
        
    *   A new button is shown on the right side before the enable/disable toggle, labeled &quot;Require for this type&quot; with icon `check-cicle`&nbsp;
        
        *   This will turn the field required _for this type only._ 
            
        *   These fields have a new label called &quot;Required for this type&quot;
            
        *   When already required for the type, the button becomes &quot;Do not require for this type&quot; with icon `circle-slash`
            
    *   If the custom field is globally required (through the custom field settings itself), this action will be disabled
        
*   This functionality is also available for project admins
    
*   The behavior of required custom fields is unchanged and works as before
    

## UI suggestions

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926024/content">

<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" scope="col"><p class="op-uc-p"><strong>Element</strong></p></th><th class="op-uc-table--cell op-uc-table--cell_head" scope="col"><p class="op-uc-p">Color scheme/icon</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Label when custom field is globally required</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Attention</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Label when custom field is required for the type</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Severe</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Icon for the action item "Require for this type"</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p"><code class="op-uc-code">check-ircle</code></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Icon for the action item "Do not require for this type"</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p"><code class="op-uc-code">circle-slash</code></p></td></tr></tbody></table></figure>

## Translations

<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" scope="col"><p class="op-uc-p">Term</p></th><th class="op-uc-table--cell op-uc-table--cell_head" scope="col"><p class="op-uc-p">English</p></th><th class="op-uc-table--cell op-uc-table--cell_head" scope="col"><p class="op-uc-p">German</p></th><th class="op-uc-table--cell op-uc-table--cell_head" scope="col"><p class="op-uc-p">French</p></th><th class="op-uc-table--cell op-uc-table--cell_head" scope="col"><p class="op-uc-p">Spanish</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Action item to mark as required</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Require in this type</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Für diesen Typ erforderlich machen</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Rendre obligatoire pour ce type</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">Action item to remove required mark</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Do not require in this type</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Für diesen Typ optional machen</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Rendre facultatif pour ce type</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">Label for "globally required" custom fields</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Required</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Erforderlich</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Obligatoire</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">Label for required within the type</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Required in this type</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">In diesem Typ erforderlich</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Obligatoire pour ce type</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">Error: Field is already required from custom field settings</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">This custom field is required for all types.</p></td><td class="op-uc-table--cell" style="background-color:hsl(0, 0%, 100%);"><p class="op-uc-p">Dieses benutzerdefinierte Feld ist für alle Typen erforderlich.</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Ce champ personnalisé est obligatoire pour tous les types.</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr></tbody></table></figure>
