link_work_items
Attach one or more work items (issues or epics) as children of a parent epic. Idempotent and uses dry-run mode by default for preview.
Instructions
Attach one or more work items (issues or epics) as children of a parent work item (epic). Uses the Work Items hierarchy widget — the canonical GitLab 17+ replacement for add_issue_to_epic. Idempotent: existing children of the parent are preserved. Resolve GIDs via get_work_item_id. dry_run=true by default.
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": {
"parent_work_item_id": "<parent_work_item_id>",
"child_work_item_ids": "<child_work_item_ids>"
},
"name": "link_work_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_work_item_id | Yes | Parent WorkItem GID (resolve via get_work_item_id with item_type=epic) | |
| child_work_item_ids | Yes | WorkItem GIDs of children to attach (Issue or Epic) | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |