Method: Brat::Client::Issues#edit_issue

Defined in:
lib/brat/client/issues.rb

#edit_issue(project, id, options = {}) ⇒ Brat::ObjectifiedHash

Updates an issue.

Parameters:

  • project (Integer)

    The ID of a project.

  • id (Integer)

    The ID of an issue.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :title (String)

    The title of an issue.

  • :description (String)

    The description of an issue.

  • :assignee_id (Integer)

    The ID of a user to assign issue.

  • :milestone_id (Integer)

    The ID of a milestone to assign issue.

  • :labels (String)

    Comma-separated label names for an issue.

  • :state_event (String)

    The state event of an issue (‘close’ or ‘reopen’).

Returns:



64
65
66
# File 'lib/brat/client/issues.rb', line 64

def edit_issue(project, id, options={})
  put("/projects/#{project}/issues/#{id}", :body => options)
end