create_work_item_relation
Relate a work item to one or more target work items using built-in or custom relation types in Plane.
Instructions
Relate a work item to one or more targets.
Always call list_work_item_relation_definitions first and match the user's wording to an entry there. If it is a built_in_dependencies value, pass it as relation_type. If it is a custom_definitions entry, pass that definition's id as relation_definition_id and the matched outward/inward label as relation_definition_label (the label sets directionality).
Args: project_id: UUID of the project. work_item_id: UUID of the source work item. work_item_ids: UUIDs of the target work items. relation_type: A built_in_dependencies value, or None for a custom relation. relation_definition_id: UUID of the relation definition (custom relations). relation_definition_label: Definition's outward or inward label (custom relations).
Returns: List of created WorkItemWithRelationType objects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"work_item_id": "<work_item_id>",
"work_item_ids": "<work_item_ids>"
},
"name": "create_work_item_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| work_item_id | Yes | ||
| relation_type | No | ||
| work_item_ids | Yes | ||
| relation_definition_id | No | ||
| relation_definition_label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |