Class: JIRA::Resource::Agile
Constant Summary
Constants inherited from Base
Base::QUERY_PARAMS_FOR_SEARCH, Base::QUERY_PARAMS_FOR_SINGLE_FETCH
Instance Attribute Summary
Attributes inherited from Base
#attrs, #client, #deleted, #expanded
Class Method Summary collapse
- .all(client) ⇒ Object
- .get_backlog_issues(client, board_id, options = {}) ⇒ Object
- .get_sprint_issues(client, sprint_id, options = {}) ⇒ Object
- .get_sprints(client, board_id, options = {}) ⇒ Object
Methods inherited from Base
belongs_to, belongs_to_relationships, build, collection_attributes_are_nested, collection_path, #collection_path, #delete, endpoint_name, #fetch, find, #has_errors?, has_many, has_one, #id, #initialize, key_attribute, #key_value, #method_missing, nested_collections, #new_record?, parse_json, #patched_url, #path_component, #respond_to?, #save, #save!, #set_attrs, #set_attrs_from_response, singular_path, #to_json, #to_s, #to_sym, #url
Constructor Details
This class inherits a constructor from JIRA::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JIRA::Base
Class Method Details
.all(client) ⇒ Object
11 12 13 14 |
# File 'lib/jira/resource/agile.rb', line 11 def self.all(client) response = client.get(path_base(client) + '/board') parse_json(response.body) end |
.get_backlog_issues(client, board_id, options = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/jira/resource/agile.rb', line 16 def self.get_backlog_issues(client, board_id, = {}) [:maxResults] ||= 100 response = client.get("/rest/agile/1.0/board/#{board_id}/backlog?maxResults=#{[:maxResults]}") parse_json(response.body) end |
.get_sprint_issues(client, sprint_id, options = {}) ⇒ Object
28 29 30 31 32 |
# File 'lib/jira/resource/agile.rb', line 28 def self.get_sprint_issues(client, sprint_id, = {}) [:maxResults] ||= 100 response = client.get("/rest/agile/1.0/sprint/#{sprint_id}/issue?maxResults=#{[:maxResults]}") parse_json(response.body) end |
.get_sprints(client, board_id, options = {}) ⇒ Object
22 23 24 25 26 |
# File 'lib/jira/resource/agile.rb', line 22 def self.get_sprints(client, board_id, = {}) [:maxResults] ||= 100 response = client.get("/rest/agile/1.0/board/#{board_id}/sprint?maxResults=#{[:maxResults]}") parse_json(response.body) end |