Class: TimeLogRobot::JIRA::IssueKeyParser

Inherits:
Object
  • Object
show all
Defined in:
lib/time_log_robot/jira/issue_key_parser.rb

Constant Summary collapse

ISSUE_KEY_REGEX =
/([A-Z]+-\d+)/

Class Method Summary collapse

Class Method Details

.parse(entry) ⇒ Object



7
8
9
10
11
# File 'lib/time_log_robot/jira/issue_key_parser.rb', line 7

def parse(entry)
  get_key_from_description(entry.description) ||
  get_key_from_project(entry.project_name) ||
  get_key_from_key_mapping(entry.description)
end