get_work_package
Retrieve a work package by ID or display ID, including its full description, and optionally select specific fields or cap text length for focused responses.
Instructions
Get a work package by id, including its full description.
The description is returned in full by default (single work packages are not
truncated). Pass text_limit to cap it at that many characters; when the
text is cut, description_truncated is true and description_length
reports the real length. This same text_limit also caps any
"text"-format custom field value in custom_fields (see
list_work_packages's docstring for the full custom_fields/custom_comments
shape and hide-matching rules) -- but a scalar string/link/date-format
custom field value is capped independently at ~255 characters regardless
of text_limit, including when text_limit=None (the default here):
"single work packages are not truncated" applies to description and CF
text-format values, not to that separate, always-on scalar cap.
select restricts the response to the given fields (e.g. ["id", "subject", "status"]); an invalid name returns the allowed set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | No | Fields to return; a requested unset field comes back as null. Allowed: ancestors, ancestors_truncated, assignee, author, category, children, children_truncated, created_at, custom_comments, custom_comments_truncated, custom_fields, custom_fields_truncated, derived_due_date, derived_estimated_time, derived_percentage_done, derived_remaining_time, derived_start_date, description, description_length, description_truncated, display_id, due_date, duration, estimated_time, has_project_attributes, id, ignore_non_working_days, lock_version, parent_display_id, parent_id, percentage_done, priority, project, project_phase, readonly, remaining_time, responsible, schedule_manually, spent_time, sprint, start_date, status, subject, target_versions, type, updated_at, 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. |