Hub: Hub Issue Support for Projects

Created on 1 Nov 2019  路  3Comments  路  Source: github/hub

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

feature

Most helpful comment

:+1:
I'd particularly like to be able to assign (or unassign) an issue's project from the cli.

All 3 comments

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
}
}
}
}
}
}
}
}
}
}
'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wwwdata picture wwwdata  路  3Comments

nicksergeant picture nicksergeant  路  3Comments

eromoe picture eromoe  路  4Comments

DennisSchiefer picture DennisSchiefer  路  4Comments

aryan9600 picture aryan9600  路  3Comments