Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Add issue to a project? #361

Open
Open
@nickiannone-tw

Description

@nickiannone-tw

I've got a Hubot instance with a set of scripts which use octonode to sync Slack messages with GitHub Enterprise issues. I'm trying to add a piece of code to add an Issue to an existing Project, and let it auto-triage to To Do status, but I'm unable to achieve this by setting the project field on the issue and using the update method. How would I add this Issue to a Project with a known ID?

Current (non-working) code:

issue = client().issue REPO, id
project = client().project REPO, 1 # We want <repo>/projects/1!
issue.update { project: project }, (err, data, headers) ->
  unless err?
    res.send "Added issue ##{id} to project 1"
  else
    res.reply "Error"

I'm getting the success response from my GHE instance, but the issue isn't being assigned to the project. Is there another way to assign an issue to a project, or is this just currently unsupported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions