create_work_item_relation
Relate a work item to one or more target work items using built-in dependency types or custom relation definitions, enabling project dependency tracking.
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.
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 |