# Feature FND-278 - Multi-category features

Project: Stream workspace foundations
Status: new
URL: https://community.openproject.org/work_packages/FND-278

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| FND-289 | Edit several categories in the UI | Implementation | new |  |  |  |
| FND-290 | Rename the category field to Categories | Implementation | new |  |  |  |
| FND-291 | Apply the default assignee from several categories | Implementation | new |  |  |  |
| FND-292 | Show categories in alphabetical order | Implementation | new |  |  |  |
| FND-293 | Apply the FND-268 sort order to labels and versions | Implementation | new |  |  |  |

## Bugs and other work packages

_No work packages_

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As a** project member  
**I want to** set and see several categories on a work package and use them in lists  
**so that** I can show every component that a work package affects.

**Acceptance criteria**

All criteria apply when multiple categories is on.

  - The work package page, the split view and the create form show the field "Categories" as a multi-select. The user can search in the dropdown.

  - The table column shows all categories. Inline edit in the table can set several categories.

  - Categories show in alphabetical order on the work package, in the table, in dropdowns, in exports and on the category index page in the project settings.

  - The filter "is" shows work packages that have at least one of the selected categories. "Is not" hides work packages that have any of them. "None" shows work packages without a category.

  - Grouping works the same way as for target versions: one group for each combination of categories. Drag and drop into a group sets the categories of that group.

  - Bulk edit sets several categories. The selection replaces the current categories. "(none)" removes all categories.

  - An incoming e-mail with `Category: Backend, Frontend` sets both categories. The CSV import accepts several categories in one cell.

  - Exports, notification e-mails, attribute macros and auto-generated subjects show all categories.

  - The summary report counts a work package under each of its categories. The cost report follows <mention class="mention" data-id="FND-178" data-type="work_package" data-text="#FND-178">#FND-178</mention>.

  - When a work package gets categories with default assignees, the assignee becomes the default assignee of the first of these categories in alphabetical order. This also replaces an assignee that was set manually (<mention class="mention" data-id="FND-268" data-type="work_package" data-text="#FND-268">#FND-268</mention>).

  - The type form configuration shows "Categories" in place of "Category".

**Technical notes**

  - Most multi-value behavior (filters, grouping, exports, e-mail, CSV import) is built in <mention class="mention" data-id="FND-277" data-type="work_package" data-text="#FND-277">#FND-277</mention>. These criteria test it after the switch.

  - Extract `SingleOrMultiSelectEditFieldComponent` from the versions edit field.

  - Reference: <https://github.com/opf/openproject/pull/24620>.

  - Analog: <mention class="mention" data-id="COMMS-839" data-type="work_package" data-text="#COMMS-839">#COMMS-839</mention>, <mention class="mention" data-id="COMMS-884" data-type="work_package" data-text="#COMMS-884">#COMMS-884</mention>, <mention class="mention" data-id="COMMS-903" data-type="work_package" data-text="#COMMS-903">#COMMS-903</mention>.

**Out of scope**

  - A dialog that lets the user choose the assignee on a conflict (v2 in <mention class="mention" data-id="FND-268" data-type="work_package" data-text="#FND-268">#FND-268</mention>).
