It would be great if the hub issue
command supported a --project
/ -P
option for filtering the returned issues by the project with which they are associated. It would be nice to also be able to obtain the an issue's project via a %p
format option (ideally showing both the project name & column).
Thanks for the suggestion! To perform this kind of filtering in bulk would require us to switch to GraphQL and use the projectCards
connection on an Issue. Otherwise, I have no idea how we could collect this information using the REST API.
I'll keep this open for now, since it's not a bad idea, but note that this will be hard to implement and is not high on our list of priorities, so it might be a while.
See also https://github.com/github/hub/issues/2084 https://github.com/github/hub/issues/2193 for examples of ideas that sound relatively simple to add but are currently very tricky to implement.
:+1:
I'd particularly like to be able to assign (or unassign) an issue's project from the cli.
This doesn't exactly get you want you want, but should get you started
```
hub api graphql -f query='
{
repository(name: "repo", owner: "org") {
project(number: 1) {
columns(first: 10) {
edges {
node {
id
name
cards(first: 100) {
nodes {
content {
... on Issue {
id
title
number
state
}
}
}
}
}
}
}
}
}
}
'
Most helpful comment
:+1:
I'd particularly like to be able to assign (or unassign) an issue's project from the cli.