list_relations
List all OpenProject relations across the instance, optionally filtered by stored relation type, to inspect dependencies and links between work packages.
Instructions
List all relations across the instance, optionally filtered by type (e.g. 'blocks', 'follows').
type/from_id/to_id reflect how OpenProject actually stored the relation (it does not change depending on which work package's relations you're viewing), which can differ from how it was originally requested; OpenProject canonicalizes some relation types at creation time (e.g. a relation requested as 'precedes' is stored as 'follows' with from_id/to_id swapped; see create_work_package_relation). Filtering by relation_type matches the stored (canonical) type, not necessarily the type a caller originally requested when creating it.
Each result's queried_perspective field is always null here; a caller-relative reading needs one anchor work package to read the relation FROM, and this instance-wide listing has none. Use get_work_package_relations instead when you need queried_perspective populated.
total is only the count of allowed relations returned on THIS page, not a full count of all matches; the search stops as soon as it has enough, so an exact total would need an extra full walk. Page until next_offset is null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, capped at OPENPROJECT_MAX_PAGE_SIZE. | |
| offset | No | 1-based page number; pass the previous result's next_offset. | |
| select | No | Fields to return; a requested unset field comes back as null. Allowed: description, description_length, description_truncated, from_id, from_subject, id, queried_perspective, to_id, to_subject, type. | |
| relation_type | No |