Class: RedmineRemotes::Esosti::Instance
- Inherits:
-
Avmtrf1::Esosti::Instance
- Object
- Avmtrf1::Esosti::Instance
- RedmineRemotes::Esosti::Instance
- Defined in:
- lib/redmine_remotes/esosti/instance.rb
Constant Summary collapse
- ISSUE_ID_PATTERN =
/\A(?:ss|in)[0-9]+\z/i.freeze
Class Method Summary collapse
Instance Method Summary collapse
- #fetch_issues_changed(start_time, _end_time) ⇒ Object
- #issue_human_view_url(ticket_type, ticket_uid) ⇒ Object
Class Method Details
.parse_issue_id(global_issue_id) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/redmine_remotes/esosti/instance.rb', line 12 def parse_issue_id(global_issue_id) m = ISSUE_ID_PATTERN.match(global_issue_id) return nil unless m ::OpenStruct.new(provider_issue_id: m[0], project_id: nil, project_issue_id: nil) # rubocop:disable Style/OpenStructUse end |
Instance Method Details
#fetch_issues_changed(start_time, _end_time) ⇒ Object
24 25 26 |
# File 'lib/redmine_remotes/esosti/instance.rb', line 24 def fetch_issues_changed(start_time, _end_time) changed(start_time) end |
#issue_human_view_url(ticket_type, ticket_uid) ⇒ Object
20 21 22 |
# File 'lib/redmine_remotes/esosti/instance.rb', line 20 def issue_human_view_url(ticket_type, ticket_uid) "#{root_url}/itsm/ui/?event=loadapp&value=#{ticket_type}&uniqueid=#{ticket_uid}" end |