# Feature COMMS-3 - Use @-mention of user when quote replying to a comment

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-3

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 15.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| COMMS-226 | When quoting, are we sure we want the name of author of the quoted text to be a mention? | resolved | Use @mention + "wrote" as a separate text translation |
| COMMS-233 | What should happen when a user is @-mentioning themselves | decided | Make the behaviour consistent, mention anyone (even self) works the same way |

## Use cases

_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 | Bruno Pagno |
| 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 members  
**I want to** be notified when someone quotes my text, even if they don't explicitly @mention me  
**so that** I don't miss information that clearly relevant to me

**Context**

Currently when quote replying to an activity comment of a different user the text "René Schodder wrote:" is added as a line above the quoted text. Many users expect that the person they are quoting is automatically notified about their reply. This however does not happen if the user is not in the watchlist or assignee or accountable or generally notified of new activities of the work package. To notifiy the person you are replying to, you have to manually add an @-mention of the user.

The idea is to change the line "René Schodder wrote:" to automatically include the @-mention, so that it reads "<mention class="mention" data-id="45299" data-type="user" data-text="@René Schodder">@René Schodder</mention> wrote:".

**Acceptance criteria**

  - When quoting a user, in the new comment:
    
      - replace the current prended text from format: "{name of author} wrote:"
    
      - to fomat: "{mentioned name of author} wrote:"
        
          - Essentially, make the name a link

  - Update the current translation string accordingly to use the correct variable
    
      - key: `js.text_user_wrote`

**Technical notes**

  - It should be possible to include a dynamic variable in the translation string, such that if the order is different in a different language, the translation string can easily be adapted. 

**Permissions and visibility considerations**

  - No change in permissions

**Out of scope**

  - Message threads

<br>
