Module Gitlab::Client::Issues
In: lib/gitlab/client/issues.rb

Methods

Public Instance methods

Closes an issue.

@example

  Gitlab.close_issue(3, 42)

@param [Integer] project The ID of a project. @param [Integer] id The ID of an issue. @return [Gitlab::ObjectifiedHash] Information about closed issue.

Creates a new issue.

@example

  Gitlab.create_issue(5, 'New issue')
  Gitlab.create_issue(5, 'New issue', { description: 'This is a new issue', assignee_id: 42 })

@param [Integer] project The ID of a project. @param [String] title The title of an issue. @param [Hash] options A customizable set of options. @option options [String] :description The description of an issue. @option options [Integer] :assignee_id The ID of a user to assign issue. @option options [Integer] :milestone_id The ID of a milestone to assign issue. @option options [String] :labels Comma-separated label names for an issue. @return [Gitlab::ObjectifiedHash] Information about created issue.

Deletes an issue. Only for admins and project owners

@example

  Gitlab.delete_issue(3, 42)

@param [Integer] project The ID of a project. @param [Integer] id The ID of an issue. @return [Gitlab::ObjectifiedHash] Information about deleted issue.

Updates an issue.

@example

  Gitlab.edit_issue(6, 1, { title: 'Updated title' })

@param [Integer] project The ID of a project. @param [Integer] id The ID of an issue. @param [Hash] options A customizable set of options. @option options [String] :title The title of an issue. @option options [String] :description The description of an issue. @option options [Integer] :assignee_id The ID of a user to assign issue. @option options [Integer] :milestone_id The ID of a milestone to assign issue. @option options [String] :labels Comma-separated label names for an issue. @option options [String] :state_event The state event of an issue (‘close’ or ‘reopen’). @return [Gitlab::ObjectifiedHash] Information about updated issue.

Gets a single issue.

@example

  Gitlab.issue(5, 42)

@param [Integer] project The ID of a project. @param [Integer] id The ID of an issue. @return [Gitlab::ObjectifiedHash]

Gets a list of user‘s issues. Will return a list of project‘s issues if project ID passed.

@example

  Gitlab.issues
  Gitlab.issues(5)
  Gitlab.issues({ per_page: 40 })

@param [Integer] project The ID of a project. @param [Hash] options A customizable set of options. @option options [Integer] :page The page number. @option options [Integer] :per_page The number of results per page. @return [Array<Gitlab::ObjectifiedHash>]

Reopens an issue.

@example

  Gitlab.reopen_issue(3, 42)

@param [Integer] project The ID of a project. @param [Integer] id The ID of an issue. @return [Gitlab::ObjectifiedHash] Information about reopened issue.

[Validate]