# Feature OP-8036 - Show additional information (project name, status, ...) in work package auto completers

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 12.0.0 |
| Sprint | 12.0.0 |
| Backlog bucket |  |
| Votes | 6 |
| 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 | 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** a project member  
**I want** to have additional information in the work package autocompleters, e.g. when selecting candidates for a relation  
**so that** I can easily distinguish between equally named work packages and can make an educated decision since I know more of the context.

#### Proposed solution

Similar to how work packages are already presented in the search auto completion, the auto completer for relations will display additional fields per work package:

  - Project
  - Author (via an avatar)
  - Status

The currently existing field

  - Type

is removed to make room.

The currently existing field

  - Id

is kept but it is placed differently.

The results of the relation auto completer will look similar to how the search auto completer currently displays its results (without the project selection):

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/21423/content"></div></figure>

Currently, only id and subject are considered when searching for a relation candidate. This is to be extended to also include the project. As a result, the user can type in 'company auto completion' to find work packages with the subject 'auto completion' within the 'company' project. Other examples include:

  - 'company auto completion' -\> Work package in project 'lorem ipsum' with subject 'Improve auto completion for Company'
  - 'company auto completion' -\> Work package in project 'completion' with subject 'automate Company'
  - '123' -\> Work package in project 'lorem ipsum' with id '123'

The parts of the fields 'id', 'subject' and 'project' matching the search string are highlighted to convey why a work package is part of the result set.

#### Acceptance criteria

  - The autocompleter for managing work package relations (parent, child, follows, precedes, blocks, ...) shows the following elements:
      - Work package subject
      - Project name
      - Work package id
      - Work package status name
      - Work package author's avatar
  - The autocompleter highlights (e.g. colored background) the parts of the attributes matching the search string for the attributes
      - Work package subject
      - Project name
      - Work package id
  - The work packages are searched by the following attributes. Partial matches, and matches in multiple attributes are also supported.
      - Work package subject
      - Project name
      - Work package id

### **User Problem**

#### **User**

*What persona, persona segment, or customer type experiences the problem most acutely?*

  - Project managers who use project templates a lot and create work packages by the same name.
      - e.g. project which contains engine-parts which are copied over.

#### **Problem**

*What problem or job does the user have?*

  - Not clear which project a work package belongs to - especially if work packages have the same name.
      - e.g. not clear which model (project name) a part (work package) belongs to.

#### **Pain**

*What is the primary workaround that users perform that we could remove or replace? Why is it painful?*

  - The project name can be manually added to the name of the work package. This is however quite bothersome to add and can disrupt users working just within a project. It would also require that each time a project is created from a template, the names are manually adjusted for all work packages which reduces the benefit of using the template.
