module Gitlab::Client::Issues

def create_issue(project, title, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about created issue.

Options Hash: (**options)
  • :labels (String) -- Comma-separated label names for an issue.
  • :milestone_id (Integer) -- The ID of a milestone to assign issue.
  • :assignee_id (Integer) -- The ID of a user to assign issue.
  • :description (String) -- The description of an issue.

Parameters:
  • options (Hash) -- A customizable set of options.
  • title (String) -- The title of an issue.
  • project (Integer, String) -- The ID or name of a project.
def create_issue(project, title, options = {})
  body = { title: title }.merge(options)
  post("/projects/#{url_encode project}/issues", body: body)
end