-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
137 lines (98 loc) · 3.9 KB
/
README
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
NAME
RT::Condition::NotStartedInBusinessHours - Check for unstarted tickets
within business hours
DESCRIPTION
This RT condition will check for tickets which are not started within
business hours.
SYNOPSIS
CLI
rt-crontool
--search RT::Search::ModuleName
--search-arg 'The Search Argument'
--condition RT::Condition::NotStartedInBusinessHours
--condition-arg 'The Condition Argument'
--action RT::Action:ActionModule
--template 'Template Name or ID'
INSTALLATION
This condition based on the following modules:
RT >= 4.0.0
Date::Manip >= 6.34
To install this condition run the following commands:
perl Makefile.PL
make
make test
make install
or place this script under
$RT_HOME/local/lib/RT/Condition/
where $RT_HOME is the path to your RT installation, for example
"/opt/rt4".
You may additionally make this condition available in RT's web UI as a
Scrip Condition:
make initdb
Another way to install the latest release is via CPAN:
cpan RT::Condition::NotStartedInBusinessHours
$RT_HOME/sbin/rt-setup-database --action insert --datafile /opt/rt4/local/plugins/RT-Condition-NotStartedInBusinessHours/etc/initialdata
The second command is equivalent to "make initdb", but is unfortunately
not executed automatically.
CONFIGURATION
RT SITE CONFIGURATION
To enabled this condition edit the RT site configuration located under
"$RT_HOME/etc/RT_SiteConfig.pm":
Set(@Plugins,qw(RT::Condition::NotStartedInBusinessHours));
To change the standard behavior of Date::Manip you may add to the site
configuration:
Set(%NSIBHDateManipConfig, (
'WorkDayBeg', '9:00',
'WorkDayEnd', '17:00',
#'WorkDay24Hr', '0',
'WorkWeekBeg', '1',
'WorkWeekEnd', '5'
));
For more information see
<http://search.cpan.org/~sbeck/Date-Manip-6.34/lib/Date/Manip/Config.pod
#BUSINESS_CONFIGURATION_VARIABLES>.
CONDITION ARGUMENT
This condition needs exactly 1 argument to work.
--condition RT::Condition::NotStartedInBusinessHours
--condition-arg 1
1 is the time in hours for escalation.
EXAMPLE CRON JOB
rt-crontool
--search RT::Search::FromSQL
--search-arg "Queue = 'General' AND ( Status = 'new' ) AND Owner = 'Nobody'"
--condition RT::Condition::NotStartedInBusinessHours
--condition-arg 1
--action RT::Action::RecordComment
--template 'Unowned tickets'
AUTHOR
Benjamin Heisig, <bheisig@synetics.de>
SUPPORT AND DOCUMENTATION
You can find documentation for this module with the "perldoc" command.
perldoc RT::Condition::NotStartedInBusinessHours
You can also look for information at:
Search CPAN
<http://search.cpan.org/dist/RT-Condition-NotStartedInBusinessHours/
>
RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=RT-Condition-NotStartedInB
usinessHours>
AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/RT-Condition-NotStartedInBusinessHours>
CPAN Ratings
<http://cpanratings.perl.org/d/RT-Condition-NotStartedInBusinessHour
s>
Repository
<https://github.com/bheisig/rt-condition-notstartedinbusinesshours>
BUGS
Please report any bugs or feature requests to the author.
ACKNOWLEDGEMENTS
This script is a fork from RT::Condition::UntouchedInBusinessHours
written by Torsten Brumm.
COPYRIGHT AND LICENSE
Copyright 2012 synetics GmbH, <http://i-doit.org/>
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Request Tracker (RT) is Copyright Best Practical Solutions, LLC.
SEE ALSO
RT
Date::Manip