Class: EwmService

Inherits:
IssueTrackerService show all
Defined in:
app/models/project_services/ewm_service.rb

Constant Summary

Constants inherited from Service

Service::DEV_SERVICE_NAMES, Service::SERVICE_NAMES

Instance Attribute Summary

Attributes included from Importable

#imported, #importing

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IssueTrackerService

#data_fields, #default?, #execute, #fields, #handle_properties, #initialize_properties, #issue_path, #issue_tracker_path, #legacy_properties_data, #new_issue_path, #set_default_data, #support_close_issue?, #support_cross_reference?, supported_events, #supports_data_fields?

Methods inherited from Service

#activated?, #api_field_names, #async_execute, available_services_names, available_services_types, boolean_accessor, build_from_integration, #category, #configurable_event_actions, #configurable_events, default_integration, dev_services_names, #editable?, #event_channel_names, event_description, #event_field, #event_names, event_names, #execute, #fields, find_or_create_templates, find_or_initialize_all, find_or_initialize_integration, #global_fields, #help, #initialize_properties, instance_exists_for?, #issue_tracker?, #json_fields, #operating?, prop_accessor, #reset_updated_properties, services_names, services_types, #show_active_box?, supported_event_actions, #supported_events, supported_events, #supports_data_fields?, #test, #to_data_fields_hash, #to_param, #to_service_hash, #updated_properties

Methods included from ProjectServicesLoggable

#build_message, #log_error, #log_info, #logger

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.reference_pattern(only_long: true) ⇒ Object


6
7
8
# File 'app/models/project_services/ewm_service.rb', line 6

def self.reference_pattern(only_long: true)
  @reference_pattern ||= %r{(?<issue>\b(bug|task|work item|workitem|rtcwi|defect)\b\s+\d+)}i
end

.to_paramObject


18
19
20
# File 'app/models/project_services/ewm_service.rb', line 18

def self.to_param
  'ewm'
end

Instance Method Details

#can_test?Boolean

Returns:

  • (Boolean)

22
23
24
# File 'app/models/project_services/ewm_service.rb', line 22

def can_test?
  false
end

#descriptionObject


14
15
16
# File 'app/models/project_services/ewm_service.rb', line 14

def description
  s_('IssueTracker|EWM work items tracker')
end

#issue_url(iid) ⇒ Object


26
27
28
# File 'app/models/project_services/ewm_service.rb', line 26

def issue_url(iid)
  issues_url.gsub(':id', iid.to_s.split(' ')[-1])
end

#titleObject


10
11
12
# File 'app/models/project_services/ewm_service.rb', line 10

def title
  'EWM'
end