get_work_item_id
Retrieve the global ID of a GitLab epic or issue to use as parent or child when linking work items. Required for link_work_items and unlink_work_items operations.
Instructions
Resolve the WorkItem global ID (gid://gitlab/WorkItem/N) for an epic or issue. Required as parent_work_item_id / child_work_item_ids on link_work_items and unlink_work_items.
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": {
"item_type": "<item_type>",
"iid": "<iid>"
},
"name": "get_work_item_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_type | Yes | Work item type | |
| group_id | No | Group ID (required if item_type is epic) | |
| project_id | No | Project ID (required if item_type is issue) | |
| iid | Yes | IID of the epic or issue |