gh-projects icon indicating copy to clipboard operation
gh-projects copied to clipboard

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

Open MarcPow opened this issue 2 years ago • 1 comments

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).

MarcPow avatar Jun 01 '23 20:06 MarcPow

@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")’

mntlty avatar Jun 05 '23 17:06 mntlty