# Feature SSI-366 - Add numeric values to custom field hierarchy items

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-366

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.6.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| SSI-415 | How to name it? | decided | "Weighted item list" |

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| SSI-367 | Add data migrations to data model | Implementation | closed |  | 16.4.0 |  |
| SSI-368 | Introduce new custom field type scored list | Implementation | closed |  | 16.4.0 |  |
| SSI-369 | Update item form component to render score input | Implementation | closed |  | 16.4.0 |  |
| SSI-370 | Update persistence services to handle score data | Implementation | closed |  | 16.4.0 |  |
| SSI-371 | Update item component to show the score | Implementation | closed |  | 16.5.0 |  |
| SSI-398 | Make scored list usable in work packages | Implementation | closed |  | 16.5.0 |  |
| SSI-399 | Make scored list usable in project attributes | Implementation | rejected |  | 16.5.0 |  |
| SSI-403 | Amend export formatter for hierarchical items to support item score | Implementation | closed |  | 16.5.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| SSI-397 | Bug | Updating custom field items for hierarchies with invalid data fails | closed |  | 16.4.0 |  |  |
| SSI-424 | Bug | When user saves form with missing data, focus is not set on field where data is missing | closed |  | 16.6.0 |  | Administration / Custom fields |
| SSI-425 | Bug | Score is saved as '2.0' even if user inputs '2' | closed |  | 17.2.0 |  | Administration / Custom fields |
| SSI-426 | Bug | WP display of scored list sub-item is confusing | confirmed |  |  |  | Administration / Custom fields |

## 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 |  |
| Developers |  |
| Designer |  |
| 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** configure a custom field of type hierarchy to assign numeric values to the items  
**so that** I can use that score when calculating the result of custom fields of type calculated value.

**Acceptance criteria**

  - When creating a custom field, the user can now select a custom field of type "Scored list"

  - A scored list must have the following configuration data:
    
      - name
    
      - required
    
      - for all projects
    
      - used as filter

  - A scored list must not have the following configuration data:
    
      - multiselect

  - An item of a scored list must have the following properties
    
      - label - String
    
      - score - Float

  - A user must be able to add a sub item to any item of a scored list.

### Hints and information

  - scored lists are a different type than hierarchies, but they do use the same data structure below

  - "Hierarchy" will eventually be called only "List" and the old list will be considered deprecated. Those steps won't be taken in this feature. The future structure should be like this:
    
      - We will have the sub type "Simple list" and "Scored list"
    
      - List items will have shorts, scored list items will have scores
    
      - both will have a default value
    
      - both will be able to add subitems
