-
Notifications
You must be signed in to change notification settings - Fork 8
/
init.rb
executable file
·74 lines (74 loc) · 2.13 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Redmine::Plugin.register :redmine_reports do
name 'Redmine Reports plugin'
author 'IdeaCrew, Inc'
description ''
version '0.0.1'
url 'https://github.com/dchbx/redmine_reports'
author_url 'http://ideacrew.com'
menu :top_menu, :reports, { :controller => 'dchbxreports', :action => 'index' }, :caption => 'Reports'
settings :default => {
'slaShowProgressTime' => 7*24*60*60,
'slas' => [
{
'type' => 'trackers',
'id' => '22',
'timeToResolve' => 2*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'enumerations',
'id' => '16',
'timeToResolve' => 2*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'enumerations',
'id' => '17',
'timeToResolve' => 5*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'enumerations',
'id' => '18',
'timeToResolve' => 10*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'enumerations',
'id' => '19',
'timeToResolve' => 30*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'enumerations',
'id' => '20',
'timeToResolve' => 90*24*60*60,
'sinceCreation' => 'true'
},
{
'type' => 'issue_status',
'id' => '28',
'timeToResolve' => 7*24*60*60,
'sinceCreation' => 'false'
},
{
'type' => 'issue_status',
'id' => '9',
'timeToResolve' => 7*24*60*60,
'sinceCreation' => 'false'
},
{
'type' => 'issue_status',
'id' => '6',
'timeToResolve' => 7*24*60*60,
'sinceCreation' => 'false'
},
{
'type' => 'issue_status',
'id' => '29',
'timeToResolve' => 7*24*60*60,
'sinceCreation' => 'false'
},
]
}, :partial => 'settings/report_settings'
end