Work item relations overview
A relation links two work items through a relation definition, for example "ENG-42 tests ENG-17" or "ENG-42 relates to ENG-9". Relations describe how work items are connected. They don't affect dates or the order work happens in. For that, use dependencies.
A relation has no id of its own. You read a work item's relations as one map, and you remove a relation by naming the other work item in the path.
The relations map
Reads and creates return the path work item's relations grouped by label. Each key is a label from an active relation definition, and each value lists the ids of the work items related under that label.
- Every label of every active definition appears as a key, even when its list is empty. A symmetric definition, such as
Relates to, has one key because both of its labels are the same. - Keys are the label text as stored, with spaces, such as
implemented by. Custom definitions add their own keys. - Values are work item ids only. Look up the work items through the work items API.
- A related work item you can't see is left out of its list. Related work items can be in any project in the workspace.
- Relations that use an inactive definition are left out.
{
"relates to": ["f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28"],
"duplicate": [],
"implements": [],
"implemented by": ["6e2a9d47-1c5b-4f83-a7d0-3b8e4f1c9a62"],
"tests": ["9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88", "3d8f5a62-7b1e-4c94-a0d3-9e6c2f8b1a57"],
"tested by": []
}Direction
A relation is directional. When you create one, direction is one of the definition's two labels, and it decides which side the path work item is on:
- The path work item lists the new related work items under the label you sent.
- Each related work item lists the path work item under the definition's other label.
For example, with the Implements definition, creating implements on ENG-42 for ENG-17 gives ENG-42 "implements": [ENG-17] and ENG-17 "implemented by": [ENG-42]. Creating implemented by on ENG-17 for ENG-42 stores the same relation.
With a symmetric definition, both work items list each other under the same label.
Relations and dependencies
| Relations | Dependencies | |
|---|---|---|
| What they mean | How two work items are connected. No effect on dates. | The order work happens in. Plane draws them on the timeline. |
| Types | The workspace's relation definitions: three defaults, plus custom ones | Six fixed types in three pairs |
| Between the same two items | Several, one per definition and direction | At most one |
| Create body | relation_definition_id, direction, work_item_ids | relation_type, work_item_ids |
| Map keys | Definition labels, such as relates to | blocked_by, blocking, start_before, and so on |
Both use the projects.work_items.relations scopes.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v2/workspaces/{slug}/projects/{project_id}/work-items/{work_item_id}/relations/ | List work item relations |
POST | /api/v2/workspaces/{slug}/projects/{project_id}/work-items/{work_item_id}/relations/ | Create a work item relation |
DELETE | /api/v2/workspaces/{slug}/projects/{project_id}/work-items/{work_item_id}/relations/{related_work_item_id}/ | Delete a work item relation |
{related_work_item_id} is the UUID of the other work item, not a relation id. It works from either side: deleting on ENG-17 with ENG-42's id removes the same relation as deleting on ENG-42 with ENG-17's id.
Duplicates and repeats
- Creating a relation that already exists, with the same definition and direction, is skipped without an error. The response is still
201with the current map. - The same two work items can have several relations: one per definition, and for each definition one in each direction. With a symmetric definition, linking ENG-42 to ENG-17 and then ENG-17 to ENG-42 stores two relations, and the other work item's id appears twice under the label.
- When two work items have more than one relation, a delete removes only the most recently created one. Call it again to remove the next. You can't choose which definition to remove.
- The API doesn't reject the path work item's own id in
work_item_ids. Leave it out.
Access
| Operation | Who can call it | Scope |
|---|---|---|
| List | Anyone who can see the work item. | projects.work_items.relations:read |
| Create and delete | Anyone who can edit the work item: project admins, contributors, and workspace owners and admins. Commenters and guests get 403. | projects.work_items.relations:write |
Edit access is checked on the path work item only. You can relate it to any work item in the workspace that you can see.
These endpoints work on every plan, and they aren't filtered by it. The map and create use every active definition in the workspace, so a key such as implements appears even when List work item relation definitions hides that definition. See Plans.
Creating and deleting relations each add an entry to the path work item's activity.
Response shaping
The relations map isn't paginated and takes no ?fields= or ?expand=. Errors follow the shared problem+json contract.
Changed from v1
- The path is
relations/. v1 serves the same feature atwork-item-relations/. v2'srelations/is not v1's deprecatedrelations/route. relation_definition_typeis nowdirection, andwork_item_idstakes at most 100 ids per call.- The map holds work item ids. v1 embeds a work item object for each related work item. v2 also leaves out related work items you can't see.
- The path accepts a project identifier such as
ENGand a work item identifier such asENG-42. v1 takes UUIDs only. - v1's deprecated
relations/andrelations/remove/routes, which mix relations and dependencies under a fixedrelation_type, have no v2 counterpart. Use relations, or dependencies.
See Migrating from v1 for the full list.

