# Feature DREAM-261 - Show a TreeView on the page of hierachy customFields

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-261

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| DREAM-305 | [TreeView] Allow nodes to be anchors or buttons | Feature | closed |  | 16.1.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| SSI-331 | Bug | TreeView is not updated when a new item is added | closed |  | 16.3.0 |  | Administration / Custom fields, Frontend components and Primer design system / TreeView |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / Custom fields, Frontend components and Primer design system / TreeView |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/oTMDTvcwrx35qExTkkSKBn/Custom-fields?node-id=1549-19192&t=dYnQ9DGJoHe3oM9f-4 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Henriette Darge |
| Product manager |  |
| Feature Lead |  |
| Developers | Henriette Darge |
| 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 user  
**I want to** understand the hierarchy of a hierarchy customField  
**so that** I can easily navigate and add new items to the hierarchy

**Acceptance criteria**

  - On the show page of a hierachy custom field, there is a treeView shown next to the BorderBox

  - The TreeView shows the complete hierachy, whereas
    
      - The active element is highlighted
    
      - By default, the whole tree is collapsed except for the active element
        
          - All parent nodes of the active element are expanded
    
      - Clicking on the label of any node will refresh the page to show reveal that element in the BorderBox

**Technical notes**

  - This is the very first use case for the new Primer::TreeView (see <mention class="mention" data-id="62667" data-type="work_package" data-text="##62667">##62667</mention>)

  - Split the page with Primer::Alpha::Layout

**Out of scope**

  - Changing the parent of an item of the customField

**Visuals**

(Draft, for most recent visual please have a look at the provided Figma link in the workPackage details)

<img class="image_resized op-uc-image op-uc-image_inline" style="width:347px;" src="/api/v3/attachments/419155/content">
