There are several ways to move a Github issue to a Project board through the GitHub user interface, but there doesn't seem to be any way to do this via the API (either v3 or v4). Is this missing functionality?
You can:
POST /projects/columns/:column_id/cards
POST /projects/columns/cards/:card_id/moves
That is:
content_id
: The issue or pull request id you want to associate with this card. You can use the List issues for a repository and List pull requests endpoints to find this id.
Note: Depending on whether you use the issue id or pull request id, you will need to specifyIssue
orPullRequest
as thecontent_type
.
Those two calls ought to be enough.
The OP Ken Liu asked in the comments if there is any way to add an issue to a project without adding it to a project column.
seth suggests:
You can add an issue to the repo using code (GitHub API) as per creating an issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With