# Feature OP-6844 - @ mention should show user name in the editor

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 11.1.0 |
| Sprint | 11.1.0 |
| 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 | OP Dev All |
| Accountable | Jens Ulferts |
| 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

### Current situation:

  - In the edit mode the @mentions include the user id.
  - After saving the user is shown as link with the user's name.

**Expected Behavior**

  - There shouldn't be a difference between the edit and the show mode

### FrontEnd requirements

- [x] remove @ from the id
- [x] Try to get the link URL from pluginContext \> pathHelper...
- [x] Try to handle clicks on links in the editor.
- [x] Handle group mentions

### BackEnd requirements

  - The backend should:
      - In the raw markdown data, keep the mention tags as they are sent.
      - In the HTML data, translate the \<mention\> tags to links as it is doing now with user\#id
  - The mention format: **\<mention data-type=”user” data-id=”1” data-text=”@userName”\>@userName\</mention\>**

### Notes

  - There are different types of users so it's not sure that the mentions will always start with 'user\#'
