Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Feature Request: gh projects item-list should support filtering by custom fields #93

Open
MarcPow opened this issue Jun 1, 2023 · 1 comment

Comments

@MarcPow
Copy link

MarcPow commented Jun 1, 2023

Scenario: gh should enable filtering of items based on project metadata, either in the mainline CLI (gh issue) or in the gh extension (gh projects item-list).

@mntlty
Copy link
Collaborator

mntlty commented Jun 5, 2023

@MarcPow you can do this with the JSON output and jq or some other tool that speaks JSON. As an example:

gh projects item-list --org <YOUR_ORG> <PROJECT_NUMBER> --format=json | jq '.items[] | select(.status=="In Progress"  and .content.type == "Issue")’

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants