Repository navigation
Description
Granular issue statuses in GitHub CLI
Summary
GitHub issues can have a planning status as well as an open or closed lifecycle. Availability varies by host, owner, repository, and viewer. Supported hosts already accept raw status qualifiers through gh issue list --search and gh search issues. The CLI still lacks supported discovery, reads, writes, first-class filters, and accessible human output.
This proposal fills those gaps without changing behavior when status is unavailable. It is not implementation-ready. Implementation is blocked until GitHub publishes supported public read, write, and repository-scoped discovery APIs.
Problem
Lifecycle says whether an issue is active. Planning status says where it is in a workflow. Open examples are Backlog, Todo, In progress, and In review. Closed examples are Done, Not planned, and Duplicate.
Today, CLI users cannot reliably:
- discover the statuses available in a repository;
- choose an initial status without leaving
gh; - change an issue's status;
- request status in structured issue output; or
- use discoverable, validated flags for status search.
Raw search only filters by status names the user already knows. It cannot list the statuses available in a repository or change an issue's status. It also leaves quoting, validation, and availability to the user.
Goals
- Discover each repository's current status names, order, categories, and IDs.
- Show status in accessible TTY output and an explicit JSON field.
- Select status during create and edit, interactively or by flag.
- Keep lifecycle transitions atomic and owned by the server.
- Add first-class status, category, has-status, and no-status filters while retaining raw qualifiers.
- Preserve default output contracts for scripts.
- Return an error for explicit unavailable, unauthorized, or unsupported operations.
- Read the server-owned catalog instead of hard-coding status definitions.
Non-goals
- Creating, renaming, reordering, or deleting status definitions.
- Adding planning statuses to pull requests.
- Clearing an assigned status in v1.
- Replacing
gh issue close,gh issue reopen,--state, or close reasons. - Changing server-side search semantics.
The web project board can clear status through a separate interaction. Omitting CLI clearing is a v1 scope choice, not full web parity or a platform limit.
API and rollout prerequisite
Implementation must wait for supported public contracts for:
- reading an issue's assigned status;
- changing status, including the server-owned lifecycle transition;
- selecting an initial status atomically during issue creation;
- discovering the selectable catalog for a repository, including stable IDs, display names, server order, and categories;
- detecting repository and viewer availability;
- proving before create that an explicit selection will be honored, or returning an atomic error instead of substituting a status;
- stable errors for unsupported hosts, unavailable repositories, empty catalogs, invalid IDs, and insufficient permission; and
- GHES availability and versioning.
gh cannot depend on unpublished APIs.
Search rolls out and indexes separately. Read support does not prove granular search support.
Current platform contract
Current catalog
The current selectable catalog, in current display order, is:
| Name | API category key | Lifecycle effect |
|---|---|---|
| Backlog | backlog |
Open |
| Todo | planned |
Open |
| In progress | started |
Open |
| In review | started |
Open |
| Done | completed |
Closed / completed |
| Not planned | not_planned |
Closed / not planned |
| Duplicate | duplicate |
Closed / duplicate |
New is reserved and cannot be selected.
This is the current platform catalog, not a list to compile into the CLI. It is fixed and platform-defined today; users cannot customize it. Each refresh should still discover repository names, order, categories, and opaque IDs so later platform catalog changes do not require a CLI release.
The API category key is not_planned. The canonical search spelling is not-planned, with not_planned accepted for compatibility. Category flags accept both and emit the canonical search spelling not-planned. Discovery JSON retains the API key not_planned.
Lifecycle and status
Status extends lifecycle. A category change atomically updates state and state reason. The CLI sends one status operation, never a second close or reopen. Conflicting lifecycle and status inputs remain server errors.
Current lifecycle commands behave as follows when the repository is enrolled:
| CLI action | Request semantics | Effective status |
|---|---|---|
gh issue close 42 |
Omits an explicit state reason | Backend chooses the default closed status, currently Done |
gh issue close 42 --reason completed |
Explicit completed reason | Done |
gh issue close 42 --reason "not planned" |
Explicit not-planned reason | Not planned |
gh issue close 42 --reason duplicate |
Explicit duplicate reason; current CLI allows no canonical issue | Duplicate lifecycle outcome |
gh issue close 42 --reason duplicate --duplicate-of 12 |
Explicit duplicate reason and canonical issue | Duplicate, linked to #12 |
gh issue reopen 42 |
Reopens the issue | Default open status, currently Backlog |
The first row must not be described as the CLI sending completed; it does not. Owners for which statuses are unavailable retain their existing lifecycle-only behavior.
Selecting a status directly has the reverse lifecycle effect:
- an open-category status keeps an open issue open and reopens a closed issue;
- Done closes as completed;
- Not planned closes as not planned; and
- Duplicate closes as duplicate.
The web status editor supports Duplicate and asks for a canonical issue. The CLI currently supports Duplicate only through gh issue close, where --duplicate-of is optional. This proposal also adds Duplicate to gh issue edit and requires --duplicate-of there.
Null status and search
Older issues may not have a stored granular status. The web falls back to their existing lifecycle state:
- an open issue displays as Open and matches
no:status; - a closed issue displays its existing closed state or reason; and
- search maps a closed issue's reason to Done, Not planned, or Duplicate. It matches that status search rather than
no:status.
The status field itself remains null until a granular status is assigned. The CLI should follow the same behavior and explain that --no-status uses search semantics rather than testing whether the status field is null.
Proposed CLI surface
| Command | Addition |
|---|---|
gh planning-status list |
Repository-scoped catalog discovery |
gh issue create |
--status <name> and optional interactive metadata |
gh issue edit |
--status <name> and --duplicate-of <issue> |
gh issue view --json |
status field |
gh issue list |
Conditional TTY status column; --status, --category, --has-status, --no-status; JSON status |
gh search issues |
--status, --category, --has-status, --no-status |
planning-status is a new top-level command group. The name is provisional and may change during design review.
Status flags accept a discovered name, case-insensitively, matching existing issue metadata flags such as --type. The CLI resolves the name to the API ID internally. Discovery JSON exposes IDs, but write flags do not accept them.
Scenario index
| Area | Scenarios |
|---|---|
| Availability | supported repository; unsupported host; unenrolled repository/viewer; empty catalog; permission or detection failure |
| Discovery | human output; JSON output; later platform catalog changes |
| Create | flag; optional interactive selection; omission; below-triage creator; closed status; --web; editor; template; recovery |
| Edit | open status; lifecycle-changing status; Duplicate; interactive edit; batch partial success; pull request target |
| View | supported TTY; null status fallback; unavailable capability; non-TTY stability; JSON; pull request target |
| List | conditional TTY column; non-TTY stability; JSON; status/category/presence filters; --web |
| Search | raw qualifiers; first-class flags; repeated values; --include-prs; --web; search rollout errors |
| Compatibility | lifecycle commands; old GHES; catalog evolution; scripts |
Repository-scoped discovery
Human output
$ gh planning-status list --repo cli/cli
Showing 7 planning statuses in cli/cli
NAME CATEGORY ISSUE STATE
Backlog backlog OPEN
Todo planned OPEN
In progress started OPEN
In review started OPEN
Done completed CLOSED
Not planned not_planned CLOSED
Duplicate duplicate CLOSEDRows keep server order and names. ISSUE STATE is a normalized effect of the published category, not a mutable property. Human output omits opaque IDs; --json exposes them. Reserved and non-selectable definitions are omitted.
The command is repository-scoped. It uses the current repository by default and supports --repo [HOST/]OWNER/REPO.
JSON output
$ gh planning-status list --repo cli/cli --json id,name,category
[
{
"category": {
"key": "backlog",
"name": "Backlog"
},
"id": "opaque-backlog-id",
"name": "Backlog"
},
{
"category": {
"key": "planned",
"name": "Planned"
},
"id": "opaque-todo-id",
"name": "Todo"
},
{
"category": {
"key": "started",
"name": "Started"
},
"id": "opaque-in-progress-id",
"name": "In progress"
},
{
"category": {
"key": "started",
"name": "Started"
},
"id": "opaque-in-review-id",
"name": "In review"
},
{
"category": {
"key": "completed",
"name": "Completed"
},
"id": "opaque-done-id",
"name": "Done"
},
{
"category": {
"key": "not_planned",
"name": "Not planned"
},
"id": "opaque-not-planned-id",
"name": "Not planned"
},
{
"category": {
"key": "duplicate",
"name": "Duplicate"
},
"id": "opaque-duplicate-id",
"name": "Duplicate"
}
]This is the proposed CLI JSON shape, not a current API response. id, name, and category.key are the automation contract; category.name is presentation.
An empty but supported catalog succeeds with:
no planning statuses are available in cli/cli
JSON returns []. Explicit create or edit then fails.
gh issue create
Explicit non-interactive selection
$ gh issue create \
--title "Add CSV export" \
--body "Support CSV output for reports." \
--status "In progress"
Creating issue in cli/cli
https://github.com/cli/cli/issues/15000Creation includes the discovered In progress ID. A status failure rolls back creation; there is no follow-up status update.
Only discovered selectable open-category statuses are valid for create.
Optional interactive metadata
Status is optional metadata. After collecting title/body and issue type, the existing flow asks What's next?. Add metadata adds Status to the multi-select menu. Otherwise, the CLI omits status and lets the backend apply its default.
? What's next?
> Submit
Continue in browser
Add metadata
Cancel
After choosing Add metadata:
? What would you like to add?
[ ] Assignees
[ ] Labels
[ ] Projects
[ ] Milestone
[x] Status
Selecting Status opens a server-ordered picker:
? Status [Use arrows to move, type to filter]
> Use repository default
Backlog
Todo
In progress
In review
Use repository default is initially selected. The CLI submits Backlog only when selected; it is never hard-coded. Closed and reserved definitions are hidden. If no open status is selectable, the menu omits Status and creation uses backend defaults. Add metadata remains limited to viewers with triage access. Explicit --status still needs the permission check below.
Omission
$ gh issue create --title "Investigate flaky test" --body "..."
Creating issue in cli/cli
https://github.com/cli/cli/issues/15001Output and requests remain unchanged. The CLI omits status; the backend may assign its default or leave it unassigned. The CLI does not promise Backlog.
Below-triage creators
Explicit flags must never be silently substituted. Before create, a public capability or permission contract must guarantee the ID will be honored. Otherwise gh aborts:
$ gh issue create --title "Add CSV export" --body "..." --status Todo
X cannot set an initial planning status in cli/cli with your current permissions; no issue was createdOmission needs no preflight because it relies on backend defaults. Fail-loud explicit create is an API blocker and must not use unpublished behavior.
Validation
Unknown name:
$ gh issue create --title "Investigate flaky test" --body "..." --status Doing
X status "Doing" was not found in cli/cli
Available open statuses: Backlog, Todo, In progress, In reviewClosed category:
$ gh issue create --title "Already fixed" --body "..." --status Done
X new issues can only start in an open status
Available open statuses: Backlog, Todo, In progress, In reviewBoth fail before creation. The list is discovered, not hard-coded.
--web, editor, template, and recovery
The browser create URL has no status-prefill contract. The proposal rejects this combination instead of dropping the flag:
$ gh issue create --web --status Todo
X `--status` is not supported with `--web`gh issue create --web remains unchanged. Browser status support does not imply CLI prefill support.
--editor, --template, and --recover continue to own title/body handling. They do not imply a status:
$ gh issue create --editor --status Todo
$ gh issue create --template "Bug report" --status Backlog
$ gh issue create --recover recovery.json --status "In review"Status is validated after resolving the repository and recovered/template input, but before creation. Recovery never restores or invents status. Only a current flag or interactive selection sets it. Existing title/body recovery remains available after validation failure.
gh issue edit
Change status
$ gh issue edit 42 --status "In progress"
https://github.com/cli/cli/issues/42If issue 42 is open, it stays open. If it is closed, the backend reopens it and sets In progress in the same update. The CLI does not send a separate reopen request.
gh issue edit has no --state or close-reason flag, and this proposal does not add one. A single edit command therefore cannot request a lifecycle that conflicts with its status; the selected status determines the lifecycle.
Selecting a closed-category status changes lifecycle atomically:
$ gh issue edit 42 --status Done
https://github.com/cli/cli/issues/42Done closes as completed; Not planned closes as not planned. There is no separate close request.
Duplicate
Recommendation: support direct Duplicate editing, but require a canonical issue for this new surface.
$ gh issue edit 42 --status Duplicate --duplicate-of 12
https://github.com/cli/cli/issues/42The status and canonical issue are submitted in one backend operation.
Exact validation:
$ gh issue edit 42 --status Duplicate
X `--duplicate-of` is required when setting status to Duplicate
$ gh issue edit 42 --status Todo --duplicate-of 12
X `--duplicate-of` can only be used with status DuplicateAs with the existing gh issue close --duplicate-of flow, the CLI resolves the canonical issue before sending the update. A number refers to the current repository; an issue URL can refer to another repository.
$ gh issue edit 42 --status Duplicate --duplicate-of 999999
X could not resolve canonical issue 999999 in cli/cliAn invalid or unreadable reference, a pull request, or the issue itself fails before mutation and leaves issue 42 unchanged.
For interactive edit:
? What would you like to edit?
Title
Body
Assignees
Labels
Type
> Status
? Status [Use arrows to move, type to filter]
Backlog Keeps issue open
Todo Keeps issue open
> In progress Keeps issue open
In review Keeps issue open
Done Closes as completed
Not planned Closes as not planned
Duplicate Closes as duplicate
Selecting Duplicate prompts:
? Canonical issue: 12
This recommended interaction does not claim parity with close UX or web editing. Ordinary clear is out of v1 scope.
Batch edit and pull request targets
Existing batch behavior remains: concurrent independent updates, sorted results, retained successes, and a non-zero exit for any failure. There is no cross-issue transaction.
$ gh issue edit 42 43 44 --status "In progress"
https://github.com/cli/cli/issues/42
https://github.com/cli/cli/issues/44If #43 is a pull request, that target fails on stderr while issue targets succeed, and the command exits non-zero. URLs and failures keep current sorted output. Status is issue-only; other PR edits remain unchanged.
To avoid reusing one canonical issue across targets, direct Duplicate editing is limited to one target in v1:
$ gh issue edit 42 44 --status Duplicate --duplicate-of 12
X status Duplicate can only be set on one issue at a timegh issue edit adds no JSON result. Scripts keep using exit status and existing output, then may read issues with gh issue view --json status.
gh issue view
TTY
When status reads are supported and an issue has an assigned status:
$ gh issue view 42
Add CSV export cli/cli#42
Feature · In progress (Open) • monalisa opened about 2 hours ago • 3 comments
Type: Feature
Support CSV output for reports.
View this issue on GitHub: https://github.com/cli/cli/issues/42Recommendation: show status and lifecycle together rather than copy web replacement. This keeps open/closed context accessible.
For status: null, the current lifecycle presentation is the fallback:
Investigate old failure cli/cli#41
Bug · Open • monalisa opened about 2 years ago • 1 comment
Type: Bug
Investigate the old failure.
View this issue on GitHub: https://github.com/cli/cli/issues/41
An open issue is never inferred as Backlog. If lifecycle and status conflict, both remain visible; reads do not rewrite server data.
If the field or capability is unavailable, default TTY output remains the current lifecycle-only view and does not request status.
Non-TTY
Default non-TTY output is unchanged. No status: line is added:
title: Add CSV export
state: OPEN
author: monalisa
labels: enhancement
comments: 3
assignees:
projects:
milestone:
issue-type: Feature
parent:
sub-issues:
sub-issues-completed:
blocked-by:
blocking:
number: 42
--
Support CSV output for reports.
Scripts request status through JSON.
JSON
$ gh issue view 42 --json number,title,state,status
{
"number": 42,
"state": "OPEN",
"status": {
"category": {
"key": "started",
"name": "Started"
},
"id": "opaque-in-progress-id",
"name": "In progress"
},
"title": "Add CSV export"
}Unassigned:
{
"number": 41,
"status": null
}This uses the proposed normalized discovery shape. Existing JSON fields do not change.
Explicit --json status for an issue fails if status is unavailable. For a supported issue read, null means the issue has no assigned status:
X planning status is not available for issues in cli/cli
gh issue view can resolve a pull request. Its default path is unchanged. Explicit --json status on a PR returns "status": null, following the issue-only issueType precedent: the query omits the field but keeps the requested exporter key. For a pull request, null means the field is inapplicable rather than unassigned.
gh issue list
Default TTY output
Recommendation: show STATUS only when capability detection confirms read support:
$ gh issue list
Showing 3 of 3 open issues in cli/cli
ID TITLE STATUS LABELS UPDATED
#42 Add CSV export In progress enhancement about 2 hours ago
#41 Investigate old failure — bug about 1 day ago
#40 Refresh release docs Todo docs about 2 days agoThe em dash means an unassigned supported field. Issue ID lifecycle coloring stays unchanged. The dash is never converted to Backlog, Done, or an effective search value. If status is unavailable, omit the column and preserve current TTY output.
This is a CLI recommendation, not a claim that web has a textual STATUS column.
Non-TTY and JSON
Default non-TTY output stays the same headerless TSV. No field or order changes, and no status column.
Status is opt-in through JSON:
$ gh issue list --status Todo --json number,title,state,status
[
{
"number": 40,
"state": "OPEN",
"status": {
"category": {
"key": "planned",
"name": "Planned"
},
"id": "opaque-todo-id",
"name": "Todo"
},
"title": "Refresh release docs"
}
]An unassigned issue has "status": null. Explicit JSON status requests use the same capability error behavior as view.
Filters
$ gh issue list --status "In progress"
$ gh issue list --status Todo --status "In progress"
$ gh issue list --category started
$ gh issue list --category not-planned
$ gh issue list --category not_planned
$ gh issue list --has-status
$ gh issue list --no-status--status and --category repeat. Values within a family mean OR; families mean AND. For example:
$ gh issue list --status Todo --status "In progress" --label enhancementmeans (Todo OR In progress) AND label:enhancement. The CLI constructs this explicitly because repeated raw qualifiers mean OR in legacy search and AND in advanced search.
--has-status and --no-status conflict with each other, --status, and --category. --state remains the lifecycle filter. Incompatible lifecycle and status filters return no results; neither is rewritten.
Presence filters use server search semantics, including the historical closed issue asymmetry described above.
Raw search remains available:
$ gh issue list --search 'status:"In progress"'
$ gh issue list --search 'category:started'
$ gh issue list --search 'has:status'
$ gh issue list --search 'no:status'--web
List web mode accepts first-class filters after confirming search capability:
$ gh issue list --web --status "In progress"
Opening https://github.com/cli/cli/issues in your browser.The URL includes the equivalent predicate. If granular search is unavailable, the command fails rather than opening a broader page. Unfiltered --web is unchanged.
gh search issues
Existing raw syntax
These raw queries already work on supported hosts:
$ gh search issues 'status:"In progress"' --repo cli/cli
$ gh search issues category:started --repo cli/cli
$ gh search issues category:not-planned --repo cli/cli
$ gh search issues has:status --repo cli/cli
$ gh search issues no:status --repo cli/cliRaw multiword names require quotes; matching ignores case. Raw qualifiers remain available for advanced Boolean and mixed issue/PR searches.
First-class flags
$ gh search issues --status "In progress" --repo cli/cli
$ gh search issues --category started --owner github
$ gh search issues --has-status --repo cli/cli
$ gh search issues --no-status --repo cli/cliThe flags preserve ranking, pagination, output fields, and JSON contracts. They filter issues but do not add status to result JSON.
Repeated flags use list's explicit OR-within, AND-between rules. They must not emit unstructured repeated qualifiers with mode-dependent meaning.
not-planned is the documented category flag spelling; not_planned is also accepted. The API/discovery JSON continues to expose not_planned.
Pull requests
The backend supports advanced mixed branches where status: means different things for issues and PRs. Recommendation: first-class planning flags reject --include-prs for deterministic meaning:
$ gh search issues --include-prs --status "In progress"
X `--status`, `--category`, `--has-status`, and `--no-status` only apply to issues and cannot be combined with `--include-prs`This is a CLI recommendation, not a backend limit. Raw syntax supports mixed behavior.
--web and rollout errors
$ gh search issues --web --category started --repo cli/cli
Opening https://github.com/search in your browser.The URL includes the predicate. If detection or the server rejects granular search, return the validation error without retrying a broader query. Raw syntax keeps existing pass-through behavior.
Existing lifecycle commands
No new lifecycle flags are required:
$ gh issue close 42
✓ Closed issue cli/cli#42 (Add CSV export)
$ gh issue close 42 --reason completed
✓ Closed issue cli/cli#42 (Add CSV export)
$ gh issue close 42 --reason "not planned"
✓ Closed issue cli/cli#42 (Add CSV export)
$ gh issue close 42 --reason duplicate
✓ Closed issue cli/cli#42 (Add CSV export)
$ gh issue close 42 --reason duplicate --duplicate-of 12
✓ Closed issue cli/cli#42 (Add CSV export)
$ gh issue reopen 42
✓ Reopened issue cli/cli#42 (Add CSV export)Reasonless close still omits a reason. Explicit reasons and --duplicate-of keep current validation. On enabled repositories, the backend atomically maps these operations to status. Elsewhere, lifecycle behavior is unchanged.
Proposed help text
gh planning-status list
List the planning statuses available for issues in a repository.
USAGE
gh planning-status list [flags]
FLAGS
--json fields Output JSON with the specified fields
-q, --jq expression Filter JSON output using a jq expression
-t, --template string Format JSON output using a Go template; see "gh help formatting"
INHERITED FLAGS
-R, --repo [HOST/]OWNER/REPO Select another repository
JSON FIELDS
category, id, name
gh issue create
--status string Set the initial planning status by name
Long help:
- only selectable open-category statuses are accepted;
- names are matched case-insensitively;
- omission uses the repository's backend default;
- an explicit selection fails before create if it cannot be guaranteed; and
--statuscannot be combined with--web.
gh issue edit
--duplicate-of issue Mark as a duplicate of another issue
--status string Set the planning status by name
Long help:
- a status change may atomically open or close an issue;
- status cannot be cleared in v1;
--duplicate-ofis required with direct Duplicate status and invalid with other statuses;- direct Duplicate status is limited to one target; and
- planning status is not supported for pull requests.
gh issue view and gh issue list JSON
Add status to their JSON fields. Help defines it as a nullable object with id, name, and category (key, name).
gh issue list
--category strings Filter by planning status category
--has-status Filter issues with an effective planning status
--no-status Filter issues without an effective planning status
--status strings Filter by planning status name
Long help covers OR within a family, AND across families, presence conflicts, raw qualifiers, read/search null asymmetry, and unavailable-search errors.
gh search issues
--category strings Filter by planning status category
--has-status Filter issues with an effective planning status
--no-status Filter issues without an effective planning status
--status strings Filter by planning status name
Long help also rejects --include-prs with these flags and points to raw syntax for mixed searches.
Capability detection and errors
Default reads and explicit requests differ.
Default read policy
Default TTY view and list first detect the public field and repository/viewer availability. They request status only when supported. Otherwise, current output is preserved. An empty selectable catalog does not disable reads because reserved assignments may remain readable.
Default non-TTY view and list do not request status at all.
A transient detection or permission error does not prove unavailability. Default reads preserve current output where safe; debug output may show the failure. A later plan must define cache lifetime and distinguish unsupported responses from network or authorization failures.
Explicit request policy
Discovery, --json status, create/edit --status, and first-class search flags return errors when unsupported. They never:
- silently ignore the flag;
- substitute Backlog or another status;
- retry without the status predicate;
- treat unsupported as
null; or - use an internal or unpublished API.
Proposed errors:
| Case | Message/behavior |
|---|---|
| Unsupported host/API | X planning statuses are not supported by HOST |
| Repository/viewer unavailable | X planning status is not available for issues in OWNER/REPO |
| Empty catalog on write | X no planning statuses are available in OWNER/REPO |
| Unknown status | Fail and list dynamically discovered applicable names |
| Closed status on create | Fail before create and list open statuses |
| Explicit create cannot be guaranteed | Fail before create; create nothing |
| Insufficient write permission | Return a clear permission error; do not retry |
| Search not enrolled/indexed | Return the server validation error; do not broaden |
--json status on PR |
Return status: null, following the issue-type precedent |
| Batch PR target | Per-target failure; preserve issue successes |
| Presence flag conflict | Usage error before request |
--include-prs with first-class planning flag |
Usage error before request |
--web --status on create |
Usage error before browser open |
Compatibility
- Implicit reads fall back to current behavior on old GHES or repositories without status.
- Explicit status operations fail instead of being silently ignored.
- Default non-TTY
viewmetadata andlistTSV keep the same fields and order. - Existing JSON fields retain their shapes;
statusappears only when requested. - Existing raw search qualifiers continue to pass through.
gh issue status, lifecycle commands, non-status PR paths, editor, templates, and recovery remain unchanged.- Discovery preserves server order and allows later platform catalog changes without a CLI release.
- IDs are opaque. The CLI displays names to humans and never infers IDs from current numeric registries or names.
Design recommendations and open questions
These recommendations are separate from API readiness.
-
Should default TTY list add a conditional STATUS column? Recommendation: yes, after confirming capability. Keep non-TTY TSV unchanged and use an em dash for unassigned values.
-
Should TTY view show both status and lifecycle? Recommendation: yes. Unlike web replacement, this preserves open/closed context. Fall back to lifecycle for null or unavailable status.
-
Should interactive create select Backlog by default? Recommendation: no. Default to
Use repository defaultand omit status unless selected. -
Should direct Duplicate edit be supported? Recommendation: yes, with
--duplicate-ofrequired and one target in v1. Keep the loosergh issue close --reason duplicatecontract unchanged. -
Should v1 expose status clearing? Recommendation: no. Ordinary writes cannot clear, though web board interaction can. Revisit after a public clear contract and UX exist.
-
Should first-class search flags be repeatable? Recommendation: yes. Use OR within a family and AND between families in both search modes. Keep raw queries for other Boolean expressions.
-
Should first-class planning flags reject
--include-prs? Recommendation: yes, as a CLI clarity policy, not platform parity. Raw syntax remains available for mixed searches. -
Should
--has-statusbe first-class? Recommendation: yes, with--no-status. Help must explain that historical closed issues can read null but match an effective closed search status. -
What exact capability contract should default reads use? Open until API publication. Implementation review must verify field presence, availability, error distinctions, request cost, and GHES behavior.
-
When should implementation begin? Only after all public read/write/discovery and permission-aware create contracts above are published. Design acceptance is not API readiness.
Activity
cli-triage commentedon Nov 9, 2026
GitHub CLI 2.103.3 has partial search support through raw advanced issue search syntax. For example:
$ gh issue list --search 'status:"In Progress"'This provides a filtering workaround on supported hosts, but the released command definitions do not provide status flags for create, edit, list, or search, or a status JSON field. The request therefore covers a real gap: first-class reading, mutation, output, and validation across
gh issue, while preserving lifecycle behavior. I could not execute the released binary in this run, so this check used the published v2.103.3 command definitions.Supporting reports
Duplicate analysis
Label reasoning
Investigation notes
Generated by issue triage.
github-actions commentedon Nov 9, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
owenniblock commentedon Nov 10, 2026
Note: we're currently discussing the naming of the command:
Since it's too close to the existing: