add_linked_item
Creates a link between two GitLab work items (epics or issues) to define relationships like related, blocks, or blocked by. Uses dry-run mode for safe preview.
Instructions
Create a link between two work items (epics or issues). Link types: RELATED, BLOCKS, BLOCKED_BY. dry_run=true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_type | Yes | Source work item type | |
| group_id | No | Group ID (required if source is epic) | |
| project_id | No | Project ID (required if source is issue) | |
| source_iid | Yes | Source IID (epic or issue) | |
| target_gid | Yes | Target work item GID (e.g. gid://gitlab/Issue/123 — get it from get_issue or get_epic_widgets) | |
| link_type | Yes | Relationship type | |
| 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. |