Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hub Issue Support for Projects #2336

Open
jfritzbarnes opened this issue Nov 1, 2019 · 3 comments
Open

Hub Issue Support for Projects #2336

jfritzbarnes opened this issue Nov 1, 2019 · 3 comments
Labels

Comments

@jfritzbarnes
Copy link

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

@mislav mislav added the feature label Nov 1, 2019
@mislav
Copy link
Owner

mislav commented Nov 1, 2019

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 #2084 #2193 for examples of ideas that sound relatively simple to add but are currently very tricky to implement.

@entrity
Copy link

entrity commented Jan 27, 2020

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

@heironimus
Copy link

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

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

No branches or pull requests

4 participants