# Feature OP-5665 - hierarchy mode: collapse all

Project: OpenProject
Status: in specification
URL: https://community.openproject.org/work_packages/OP-5665

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 59 |
| List | UX/UI |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Work packages |
| Feature Flag |  |
| Requires doc change | Yes |
| 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** an OpenProject user  
**I want** to be collapse or expand all work package hierarchies  
**so** that I can quickly change my project's aggregation.

**Acceptance criteria**

  - When the hierarchy mode is activated, it should be possible to collapse or expand all work packages.
      - When collapsing work packages they should be collapsed to the highest displayed parent level.
      - When expanding work packages all hierarchy levels on the work package list should be expanded (not just direct children).
  - It should be possible to save the selected hierarchy mode (expanded or collapsed) in the view.
  - When moving throught the pagination the setting persist.

**Visuals**

<figure class="image"><img src="/api/v3/attachments/19992/content"></figure>

**Out of Scope**

  - Saving the collapse status per parent element. Only saved by hierarchy level for the entire table.

**Open**

  - Integration with existing hierarchy-mode switch.
