# Feature OP-7149 - Use generic WP autocompleter for the relations tab

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-7149

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| 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 |  |
| 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

### Pain point

  - When using the WP autocompleter in the relations tab, to add an existing WP, I can only find the WP if I know the ID or a large part of the title.
  - Often I have to use the main search to know the ID, so that I can then, add the WP.

### Solution

In the time logging modal, we already have a better autocompleter which has the option to scroll through the most recently used WPs.

We could use this component at other places, too.

### Acceptance criteria

  - In <mention class="mention" data-id="33394" data-type="work_package" data-text="#33394">#33394</mention> the WP autocompleter should be generalised.
  - This generic component should be used in the relations tab
