gh issue create, edit, view, and list support issue types, sub-issues, and relationships
Introduced 2026-06-10 · score 0.98
HOW TO USE IT
When organizing repository work with GitHub CLI v2.94.0 or later, use `gh issue create` or `gh issue edit` to set types, parent/sub-issue links, and blocking relationships; use `view` or `list` to inspect them.
gh issue create --title "<title>" --body "<body>" --type Bug --parent <parent-number> --blocked-by <issue-number>gh issue edit <issue-number> --type Bug --parent <parent-number>gh issue edit <issue-number> --add-blocking <issue-number> && gh issue view <issue-number> --json issueType,parent,subIssues,blockedBy,blocking && gh issue list --type Bug --json issueType,parent,subIssues,blockedBy,blockingWHY THIS HELPS
When organizing repository work from the CLI, set issue types, add sub-issues, or track blocking relationships.
REQUIREMENTS AND LIMITATIONS
- Version: v2.94.0
- Availability: Issue types and sub-issues are available on GitHub.com and GHES 3.17+; relationships require GHES 3.19+.
- --type <name>: Set the issue type by name; on `gh issue list`, filter by issue type name.
- --parent <number|URL>: On create, make the new issue a sub-issue of the specified parent; on edit, set the parent issue.
- --add-sub-issue <number|URL>: Add the specified issue as a sub-issue.
- --blocked-by <numbers|URLs>: On create, mark the new issue as blocked by the specified issues.
- --add-blocking <number|URL>: Add a blocking relationship by issue number or URL.
- --json <fields>: Output selected JSON fields; `issueType`, `parent`, `subIssues`, `blockedBy`, and `blocking` are available on `view` and `list`.
- Prerequisite: Use GitHub CLI v2.94.0 or later for the release-described support.
- Prerequisite: Issue types and sub-issues are available on GitHub.com and GHES 3.17+; blocked-by/blocking relationships require GHES 3.19+.
- The stated GHES versions are required for the corresponding features.
FIRST-PARTY EVIDENCE
- https://github.com/cli/cli/releases/tag/v2.94.0
- https://cli.github.com/manual/gh_issue_create
- https://cli.github.com/manual/gh_issue_edit
- https://cli.github.com/manual/gh_issue_view
Check the installed version and the source before using it. Entry JSON