Class: JiraCommand::Jira::Board
- Defined in:
- lib/jira_command/jira/board.rb
Constant Summary collapse
- BASE_PATH =
'rest/agile/1.0/board'.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from JiraCommand::Jira::Base
Instance Method Details
#list ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/jira_command/jira/board.rb', line 11 def list res = @conn.get(BASE_PATH) body = JSON.parse(res.body) body['values'].map do |item| location = item['location'] { name: item['name'], id: item['id'], projectId: location['projectId'], projectName: location['projectName'], projectKey: location['projectKey'] } end end |