class JiraCommand::Jira::Epic
Public Instance Methods
issue_key_without_epic()
click to toggle source
# File lib/jira_command/jira/epic.rb, line 29 def issue_key_without_epic res = @conn.get('rest/agile/1.0/epic/none/issue') body = JSON.parse(res.body) body['issues'].map { |item| item['key'] } end
list(board_id:)
click to toggle source
# File lib/jira_command/jira/epic.rb, line 10 def list(board_id:) res = @conn.get("rest/agile/1.0/board/#{board_id}/epic") body = JSON.parse(res.body) body['values'].map { |item| { name: item['name'], id: item['id'] } } end
move_issue(issue_key:, epic_id:)
click to toggle source
# File lib/jira_command/jira/epic.rb, line 18 def move_issue(issue_key:, epic_id:) @conn.post do |req| req.url "rest/agile/1.0/epic/#{epic_id}/issue" req.body = { issues: [ issue_key ] }.to_json end end