Skip to content

Work item relation definitions overview ​

A relation definition is a relation type, for example Relates to, Duplicate, or a custom Tests type. Definitions are set once for the whole workspace, and every project uses the same list. When you create a work item relation, you pass a definition's id and one of its labels.

These endpoints are under the workspace path and have no project segment:

text
/api/v2/workspaces/{slug}/work-item-relation-definitions/

Learn more about custom relations

Outward and inward labels ​

Each definition has two labels, one for each side of a relation. When work item A is related to work item B through a definition, the relation reads like this:

  • From A, the source: A outward B, for example "ENG-42 tests ENG-17".
  • From B, the target: B inward A, for example "ENG-17 tested by ENG-42".

A symmetric relation type uses the same text for both labels, such as relates to. Both work items then show the relation under the same label.

The relations list groups related work items by these labels, so a label is also a key in that response.

Default definitions ​

Every workspace starts with three definitions. They have is_default: true and are read-only: updating or deleting one returns 400.

nameoutwardinward
Relates torelates torelates to
Duplicateduplicateduplicate
Implementsimplementsimplemented by

Plans ​

Creating, updating, and deleting definitions needs custom relations on the workspace's plan. Without it, those calls return 402 payment_required.

Reads work on every plan, but they return only the definitions the plan includes:

  • Without custom relations, the list holds only the default definitions.
  • Without timeline dependencies, the list leaves out Implements, and getting it by id returns 404.

The relation definition object ​

Attributes ​

  • id string (uuid)

    Unique identifier for the definition. This is the relation_definition_id you send when you create a relation.

  • name string

    Display name, for example Tests. Unique in the workspace.

  • description string

    What the relation type means. Empty when not set.

  • outward string

    The label the source work item shows, for example tests. No two definitions in the workspace share an outward label.

  • inward string

    The label the target work item shows, for example tested by. No two definitions in the workspace share an inward label.

  • is_default boolean

    Whether this is one of the three default definitions. Read-only. Default definitions can't be updated or deleted.

  • is_active boolean

    Whether the definition can be used. An inactive definition is left out of relation lists, and new relations can't use it.

  • color string

    Color for the relation type, for example #16a34a. Empty when not set.

  • logo_props object

    Free-form icon metadata Plane uses to render the relation type. {} when not set.

  • sort_order number

    Manual ordering weight. Lower sorts first. Lists return definitions in this order.

  • external_id string or null

    Your system's identifier for this definition, so an import can correlate it with a record in your own system.

  • external_source string or null

    The system external_id came from, for example jira. In the workspace, the pair of external_id and external_source identifies one definition.

  • created_at string (date-time)

    When the definition was created.

  • updated_at string (date-time)

    When the definition was last updated.

  • created_by_id string (uuid) or null

    The user who created the definition. null for the default definitions, which Plane creates with the workspace.

  • updated_by_id string (uuid) or null

    The user who last updated the definition. null until someone updates it.

Response200
json
{
  "id": "7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85",
  "name": "Tests",
  "description": "A QA work item that verifies a feature",
  "outward": "tests",
  "inward": "tested by",
  "is_default": false,
  "is_active": true,
  "color": "#16a34a",
  "logo_props": {},
  "sort_order": 262140.0,
  "external_id": null,
  "external_source": null,
  "created_at": "2026-03-02T10:15:27.531904Z",
  "updated_at": "2026-03-02T10:15:27.531904Z",
  "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
  "updated_by_id": null
}

Endpoints ​

MethodPathDescription
GET/api/v2/workspaces/{slug}/work-item-relation-definitions/List work item relation definitions
GET/api/v2/workspaces/{slug}/work-item-relation-definitions/{pk}/Get a work item relation definition
POST/api/v2/workspaces/{slug}/work-item-relation-definitions/Create a work item relation definition
PATCH/api/v2/workspaces/{slug}/work-item-relation-definitions/{pk}/Update a work item relation definition
DELETE/api/v2/workspaces/{slug}/work-item-relation-definitions/{pk}/Delete a work item relation definition

Access ​

OperationWho can call itScope
List and getAny workspace member, including guests.workspaces.work_item_relation_definitions:read
Create, update, and deleteWorkspace owners and admins. Members and guests get 403.workspaces.work_item_relation_definitions:write

Changing a definition ​

  • Renaming a label changes it everywhere at once. Existing relations keep the definition, so they show under the new label.
  • Setting is_active: false hides the definition and every relation that uses it from relation lists, and new relations with it return 404. The relations are kept. Send is_active: true to bring them back.
  • Deleting a definition returns 204. Plane then removes the relations that use it in the background. Its name and labels become free for a new definition.

Response shaping ​

Every relation definition read accepts ?fields= for sparse responses. See Sparse fields. Errors follow the shared problem+json contract.