Module: WorkItems::TypesFramework::SystemDefined::Definitions::Incident

Defined in:
app/models/work_items/types_framework/system_defined/definitions/incident.rb

Class Method Summary collapse

Class Method Details

.configurableObject



53
54
55
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 53

def configurable
  false
end

.configurationObject



36
37
38
39
40
41
42
43
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 36

def configuration
  {
    id: 2,
    name: 'Incident',
    base_type: 'incident',
    icon_name: 'work-item-incident'
  }
end

.incident_management?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 49

def incident_management?
  true
end

.use_legacy_view?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 45

def use_legacy_view?
  true
end

.widget_optionsObject



32
33
34
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 32

def widget_options
  {}
end

.widgetsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/models/work_items/types_framework/system_defined/definitions/incident.rb', line 9

def widgets
  %w[
    assignees
    award_emoji
    crm_contacts
    current_user_todos
    custom_fields
    description
    development
    email_participants
    hierarchy
    iteration
    labels
    linked_items
    linked_resources
    milestone
    notes
    notifications
    participants
    time_tracking
  ]
end