get_work_package_activities
Retrieve a work package's activity log, newest first, to review comments and change history; optionally cap comment text length and select returned fields.
Instructions
Get the activity log for a work package, most recent first.
Comments are returned in full by default (this is one work package's own
history, not an open-ended multi-row list; same rationale as
get_work_package). Pass text_limit to cap each comment at that many
characters; when a comment is cut, comment_truncated is true and
comment_length reports its real length.
When OPENPROJECT_READ_PROJECTS is not *, or a work package or custom field
is hidden, change details are left out and details_omitted is true:
OpenProject returns them as text in the API user's language with no
structure to check against the read scope or the hidden fields, and the
text can name parents, projects and versions of projects outside it and
carry the values of hidden fields. Comments, user and time are
unaffected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of most recent activities, capped at OPENPROJECT_MAX_PAGE_SIZE. Not paged. | |
| select | No | Fields to return; a requested unset field comes back as null. Allowed: comment, comment_length, comment_truncated, created_at, details, details_omitted, details_truncated, id, type, user, version. | |
| text_limit | No | ||
| work_package_id | Yes | Work package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51. |