add_work_package_comment
Add a comment to an OpenProject work package, with optional email notification and internal-only visibility. Preview the change first, then apply it after approval.
Instructions
Add a comment to a work package.
notify=false avoids change emails by default.
The result never includes details/created_at, even on an ordinary,
non-aggregated comment: OpenProject can aggregate a new comment into an
existing, more recent journal entry (e.g. a prior status change) instead
of always creating a fresh one, which would otherwise surface that
unrelated change's details and timestamp here, and there is no reliable
way to tell an aggregated response from a fresh one, so both fields are
omitted unconditionally rather than only when aggregation is suspected;
details_omitted is true.
user is normally populated, but on rare cases where OpenProject's own
write response omits it, a best-effort follow-up lookup fills it in; if
that also comes back empty, user stays null even though the comment was
saved successfully.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notify | No | ||
| comment | Yes | ||
| confirm | No | false: preview only, nothing changes. true: applies it; get the user's approval of the preview first. | |
| internal | No | ||
| work_package_id | Yes | Work package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51. |