Skip to content

Issue list command does not support non-classic Projects #6989

@ghost

Description

Describe the bug

When outputting issues to JSON with something like "gh issue list --repo <REPO> --json assignees,author,closedAt,createdAt,labels,number,projectCards,state,title,url"

gh version 2.22.1 (2023-01-27)
https://github.com/cli/cli/releases/tag/v2.22.1

Steps to reproduce the behavior

  1. Have issues assigned to a non-classic project
  2. Output them to JSON with something like "gh issue list --repo <REPO> --json assignees,author,closedAt,createdAt,labels,number,projectCards,state,title,url"
  3. projectCards will always be an empty array

Expected vs actual behavior

The expected behaviour would be to show the assigned project and any of the associated attributes from the card.

This issue fixed the issues with #4547 commands like issue create but issue list still has issues.

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions