jira issue link¶
- Usage:
jira issue link KEY... [flags]
Create, list, delete, and discover Jira issue links. Use the default action jira issue link KEY --to OTHER --type NAME to create a link, or use the subcommands for reads and deletes.
For create, KEY is the inward issue and --to is the outward issue. Link type semantics come from Jira, so confirm the configured type names with jira issue link types when direction matters.
--json-input accepts the native POST /rest/api/3/issueLink body — type, inwardIssue, outwardIssue, and an optional comment — so an API-shaped payload needs no translation to flags.
--dry-run previews create requests without contacting Jira. Link deletes are force-gated in headless, agent, and --no-input mode.
Input¶
--json-input <FILE>¶
Read the native issueLink create body from a JSON file (type, inwardIssue, outwardIssue, comment)
Accepts a file.
Link¶
--to <KEY>¶
Outward issue key
--type <NAME>¶
Link type name (Blocks, Relates, Cloners, …)
Safety¶
--dry-run¶
Preview without creating the link
Execution¶
-p --parallelism <N>¶
Maximum concurrent requests (1-16)
Default: 1
Examples¶
jira issue link PROJ-123 --to PROJ-456 --type Blocks # (1)!
jira issue link PROJ-123 --to PROJ-456 --type Relates # (2)!
jira issue link --json-input link.json # (3)!
jira issue link PROJ-123 --to PROJ-456 --type Blocks --dry-run # (4)!
- Mark one issue as blocking another
- Run 'jira issue link types' for the link types your site allows
- Create a link from a native Jira REST body
- Preview a link creation without contacting Jira
Subcommands¶
jira issue link delete: Remove an issue link by idjira issue link list: List issue linksjira issue link types: List configured issue link types