# Feature OP-9560 - Show the project hierarchy in the project selector 

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9560

## Planning

| Attribute | Value |
| --- | --- |
| Date | 2022-05-04 – 2022-05-24 |
| Priority | Medium |
| Target versions | 12.2.0 |
| Sprint | 12.2.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| 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 |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-10606 | Bug | Query params on available parent projects structured incorrectly - pageSize unused | closed |  | 12.2.0 |  |  |

## Technical Details

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

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Niels Lindenthal |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

### Description

Currently the project selector is a normal select box without hierarchies. In case of a large number of projects this makes is quite hard to select the correct project. Therefore we want to use the already existing implementation for the include projects list to display a single project selector when it comes from a text field:

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

<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/31918/content"></div></figure>

### Acceptance criteria:

The dropdown modal will be look and feel and hierarchy organisation will be taken from the list elements of the include projects modal already implemented without checkboxes as it's a single selection.

In the majority of cases this action will be triggered by a text field that will work as the search bar for the results displayed bellow, therefore there will not be any search bar inside the modal. There is multiple implementations of this text fields that triggers the modal but this work package will not centralise the look and behaviour of these, only the modal itself.

Generically the modal will take the full width of the text field that trigger it. ~~For specific cases like the work package list "project" column where this text field is small the modal will take a minimum width of 460px.~~

### Affected pages:

  - Select parent project on create new project
  - Select parent project on copying a project
  - Change the parent project information on the project settings
  - Change project of a work package on split screen
  - Change project of a work package on full view
  - Change project of a work package on work package list column
  - Project filter on the boards (as include project is not implemented yet)
  - Create a new work package from outside of any project
  - Notification settings
  - Invite user modal
  - *Administration \> Users \> Specific User \> Projects*: New project selection
  - *Administration \> Placeholder users \> Specific placeholder users \> Projects*: New project selection
  - *Administration \> Groups \> Specific groups \> Projects*: New project selection
  - *Administration \> Custom actions \> New custom action*
  - Add a project filter into a new cost report
  - Edit the project filters from the work package table configuration

### **Out of scope:**

Change the component in Rails views, e.g. the work package bulk update.  
Including text fields and its behaviour into the Design System.

### Figma link:

<https://www.figma.com/file/rddHeKCAkJo2MNI2zktSaR/?node-id=312%3A40394>

### Others:

A separate work package is created to adapt the current project selection in the navigation bar:
