Is it possible to find the project boards an issue is associated with using the REST API? #24740
-
I’m developing a Github webhook that gets notifications on issue updates. These issues are associated to one of more Github Project Boards The body payload shows this information related to the updated issue: Nothing about issue association with project boards. Is there a way to get this information? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
👋 hello there @svpr3m0, and welcome to the GitHub Support Community! Making a request to the REST API for getting an issue will not include the project that an issue is a part of. Instead, you can go through the list of cards in the project (using the Projects API, specifically the list project cards endpoint). When you fetch a card, the |
Beta Was this translation helpful? Give feedback.
-
Hi @francisfuzz, thank you for your answer. What you suggest could be a valid workaround though I guess it’s not really optimal since I would have to go through every project card to match the issue which triggered the webhook. Anyway that’s the way the API is hehe. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
I needed the ability to get all issues assigned to a project and found this. Is “get issues in project” going to be added to the REST API backlog? |
Beta Was this translation helpful? Give feedback.
-
It would be extremely useful to get the issue related to a project card, at the moment I couldn't find a way to do it other than iterating on all project cards |
Beta Was this translation helpful? Give feedback.
👋 hello there @svpr3m0, and welcome to the GitHub Support Community!
Making a request to the REST API for getting an issue will not include the project that an issue is a part of.
Instead, you can go through the list of cards in the project (using the Projects API, specifically the list project cards endpoint).
When you fetch a card, the
content_url
field will point to an issue if the card was created from an issue. I hope this helps!