Method: Gitlab::Client::Epics#create_epic

Defined in:
lib/gitlab/client/epics.rb

#create_epic(group_id, title, options = {}) ⇒ Gitlab::ObjectifiedHash

Creates a new epic.

Examples:

Gitlab.create_epic(123, "My new epic title")

Parameters:

  • group_id (Integer)

    The ID of a group.

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

    A customizable set of options.

Returns:


44
45
46
47
# File 'lib/gitlab/client/epics.rb', line 44

def create_epic(group_id, title, options = {})
  body = options.merge(title: title)
  post("/groups/#{group_id}/epics", body: body)
end