Toggle comment reaction
toggle_comment_reactionToggle your emoji reaction on a work-package comment: add or remove it, then retrieve the updated reaction state with all participants.
Instructions
React to a work-package comment with an emoji, or take your reaction back.
Use this for the lightweight acknowledgement a comment does not deserve:
š on a decision, š to say you are looking at it, š when something
shipped. Returns the comment's full reaction state afterwards ā every
emoji on it with the people who picked it ā plus reacted, which says
whether you are now among them.
Pitfalls. This is a toggle, not an add: calling it twice with the
same reaction leaves the comment exactly as it started, so it is not safe
to retry blindly after a timeout ā read reacted from the result
instead. Reactions belong to the authenticated account; you cannot react
on someone else's behalf and cannot remove their reaction. Only comment
entries can be reacted to ā a field-change journal entry ("Status changed
from New to In progress") is refused by OpenProject with a 400. The
feature needs OpenProject 16.0 or newer; an instance known to be older
is refused up front with a version hint rather than pretending to have
reacted, and one whose version is not readable answers 404 instead.
Cross-references: list_work_package_comments reads the thread and
produces activity ids; add_work_package_comment says something in
words when an emoji is not enough; get_instance_info reports the
detected OpenProject version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reaction | Yes | Which emoji to toggle. OpenProject accepts exactly eight: thumbs_up (š), thumbs_down (š), grinning_face_with_smiling_eyes (š), confused_face (š), heart (ā¤ļø), party_popper (š), rocket (š), eyes (š). Passing the emoji character itself is rejected ā use these names. | |
| activity_id | Yes | Id of the comment to react to. It comes from list_work_package_comments (the 'id' of an entry with kind='comment') or from add_work_package_comment's result ā it is an activity id, not a work package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Degradation notes; always a list, usually empty. | |
| message | Yes | Human-readable confirmation. | |
| reacted | No | True when YOU now react with it, false when this call removed your reaction. Null when the authenticated user could not be determined. | |
| reaction | Yes | The reaction this call toggled. | |
| reactions | No | Every reaction on the comment after the toggle; always a list, empty once the last one is removed. | |
| activity_id | Yes | Activity (journal entry) whose reactions these are. |