Sha256: 62f5a84d694bfd34c63b06e73b6124af05ee125ccffed46bda5e1d86a85b0776
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
#@author Filip Jakubowski module JiraIssues class JiraWorkflow OPEN = 'Open' IN_PROGRESS = 'InProgress' BLOCKED = 'Blocked' CLOSED = 'Closed' # This is WIP # This class should be able to map and unify: # - statuses # - workflows # - transitions # ATM - we will work onlu on defailt issue names def self.issue_status_for_name(project_key, status_name) { 'Backlog' => OPEN, 'Open' => OPEN, 'To Do' => OPEN, 'Blocked' => BLOCKED, 'In Progress' => IN_PROGRESS, 'Specification' => IN_PROGRESS, 'Done' => CLOSED, 'Closed' => CLOSED, 'Resolved' => CLOSED, 'Awaiting QA Deploy' => CLOSED, }.fetch(status_name) rescue KeyError => e p "You have issue with custom - if you want mapping to be configurable please contact me #{Gem.loaded_specs["jira_issues"].metadata.fetch('source_code_uri')}" raise e end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jira_issues-0.0.8 | lib/jira_issues/jira_workflow.rb |
jira_issues-0.0.7 | lib/jira_issues/jira_workflow.rb |
jira_issues-0.0.6 | lib/jira_issues/jira_workflow.rb |