Class: Jira::SprintAPI

Inherits:
API
  • Object
show all
Defined in:
lib/jira/sprint_api.rb

Instance Method Summary collapse

Methods inherited from API

#delete, #get, #patch, #post

Instance Method Details

#rapid_viewsObject



20
21
22
23
24
# File 'lib/jira/sprint_api.rb', line 20

def rapid_views
  json = get("rapidview")
  return json['views'] if json['errorMessages'].nil?
  []
end

#sprint(rapid_view_id, sprint_id) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/jira/sprint_api.rb', line 4

def sprint(rapid_view_id, sprint_id)
  params = {
    rapidViewId: rapid_view_id,
    sprintId:    sprint_id
  }
  json = get('rapid/charts/sprintreport', params: params) || {}
  return json if json['errorMessages'].nil?
  {}
end

#sprints(rapid_view_id) ⇒ Object



14
15
16
17
18
# File 'lib/jira/sprint_api.rb', line 14

def sprints(rapid_view_id)
  json = get("sprintquery/#{rapid_view_id}")
  return json if json['errorMessages'].nil?
  {}
end