class JiraIssues::JiraWorkflow
Constants
- BLOCKED
- CLOSED
- IN_PROGRESS
- OPEN
Public Class Methods
issue_status_for_name(project_key, status_name)
click to toggle source
This is WIP This class should be able to map and unify:
- statuses - workflows - transitions
ATM - we will work onlu on defailt issue names
# File lib/jira_issues/jira_workflow.rb, line 15 def self.issue_status_for_name(project_key, status_name) { 'Backlog' => OPEN, 'Open' => OPEN, 'Blocked' => BLOCKED, 'In Progress' => IN_PROGRESS, 'Done' => CLOSED, 'Closed' => CLOSED }.fetch(status_name) end