Content
View differences
Updated by Kabiru Mwenja about 1 year ago
In the context of and follow up on ##56865
<br>
**As** a client of OpenProject API
**I want to** be able to read/toggle emoji reactions on a work package comment for a given user
**Acceptance criteria**
* User with "Add Comments" permission is able to add/remove an emoji reaction
* User with "Add Comments" permission is able to add/remove an emoji reaction from an internal comment IF they also have "View Internal Comments" permission
* It is NOT possible to add/remove emoji reactions if the above permissions are missing
**Technical notes**
GET /api/v3/activities/{id}/emoji\_reactions - Emoji Reactions for a single work package comment
GET /api/v3/work\_packages/{id}/activities\_emoji\_reactions - Emoji Reactions for all work package comments, grouped by the activity/comment ID
PATCH /api/v3/activities/{id}/emoji\_reactions - Endpoint that toggles (creates/delete) an emoji reaction for a given user
```json
{
"reaction": "thumbs_up"
}
```
**Permissions and visibility considerations**
* Visible to users with "Add Comments" or "View "Write internal comments" permissions
<br>
**As** a client of OpenProject API
**I want to** be able to read/toggle emoji reactions on a work package comment for a given user
**Acceptance criteria**
* User with "Add Comments" permission is able to add/remove an emoji reaction
* User with "Add Comments" permission is able to add/remove an emoji reaction from an internal comment IF they also have "View Internal Comments" permission
* It is NOT possible to add/remove emoji reactions if the above permissions are missing
**Technical notes**
GET /api/v3/activities/{id}/emoji\_reactions - Emoji Reactions for a single work package comment
GET /api/v3/work\_packages/{id}/activities\_emoji\_reactions - Emoji Reactions for all work package comments, grouped by the activity/comment ID
PATCH /api/v3/activities/{id}/emoji\_reactions - Endpoint that toggles (creates/delete) an emoji reaction for a given user
```json
{
"reaction": "thumbs_up"
}
```
**Permissions and visibility considerations**
* Visible to users with "Add Comments" or "View