Class: JiraCommand::Jira::IssueType
- Defined in:
- lib/jira_command/jira/issue_type.rb
Constant Summary collapse
- BASE_PATH =
'rest/api/2/issuetype'.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 |
# File 'lib/jira_command/jira/issue_type.rb', line 11 def list res = @conn.get(BASE_PATH) body = JSON.parse(res.body) body.map { |item| { name: item['untranslatedName'], id: item['id'] } } end |