-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
167 lines (131 loc) · 6.04 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
NAME
RT::Extension::MandatoryFields - Enforce users to fill standard fields
when creating a ticket
DESCRIPTION
This RT Extension enforces users to fill standard fields defined in RT
site configuration file when creating a ticket via the web interface.
Filling can be enforced on tickets created in specified queues only.
Note: This extension does not take effect on custom fields. RT has
already a built-in feature to mark custom fields as mandatory.
INSTALLATION
This extension requires RT >= 4.0.0. To install this extension, run the
following commands:
perl Makefile.PL
make
make test
make install
CONFIGURATION
RT SITE CONFIGURATION
To enable this extension edit the RT site configuration located in
"$RT_HOME/etc/RT_SiteConfig.pm" (where $RT_HOME is the path to your RT
installation):
Set(@Plugins,qw(RT::Extension::MandatoryFields));
To enforce users to fill the standard fields add them to
%MandatoryFields:
Set(%MandatoryFields, (
'Requestors' => 'true',
'Cc' => 'true',
'AdminCc' => 'true',
'Subject' => 'true',
'Content' => 'true',
'Attach' => 'true',
'Status' => 'true',
'Queue' => 'true',
'Owner' => 'true',
'Priority' => 'true',
'InitialPriority' => 'true',
'FinalPriority' => 'true',
'TimeEstimated' => 'true',
'TimeWorked' => 'true',
'TimeLeft' => 'true',
'Starts' => 'true',
'Due' => 'true',
'new-DependsOn' => 'true',
'DependsOn-new' => 'true',
'new-MemberOf' => 'true',
'MemberOf-new' => 'true',
'new-RefersTo' => 'true',
'RefersTo-new' => 'true'
));
Mark a mandatory field with "true", otherwise "false".
To specify the queues where fields are mandatory, list their identifiers
in %MandatoryFields. The keyword "all" has the same effect as "true":
Set(%MandatoryFields, (
'Requestors' => 'all',
'Cc' => [1],
'AdminCc' => [1, 2, 3]
));
Note: There are more than one way to create a new ticket. The default
way is "Create", but there are "QuickCreate" on the home page and
"SelfService" for unpreviledged users, too. This extension handles them
all. If a formular doesn't include one of the fields marked as mandatory
(set to "true" in the configuration) it will be ignored. Don't get
confused if you set a mandatory field that won't show up on the web
interface. The table below gives you a short summarize which formular
supports which mandatory field.
Field Create QuickCreate SelfService
---------------- ---------- -------------- --------------
Requestors included included included
Cc included not included included
AdminCc included not included not included
Subject included included included
Content included included included
Attach included not included included
Queue not editable included not editable
Status included not included not included
Owner included included not included
Priority included not included not included
InitialPriority included not included not included
FinalPriority included not included not included
TimeEstimated included not included not included
TimeWorked included not included not included
TimeLeft included not included not included
Starts included not included not included
Due included not included not included
new-DependsOn included not included not included
(depends on)
DependsOn-new included not included not included
(depended on by)
new-MemberOf included not included not included
(parents)
MemberOf-new included not included not included
(children)
new-RefersTo included not included not included
(refers to)
RefersTo-new included not included not included
(referred to by)
After all your new configuration will take effect after restarting your
RT environment:
rm -rf $RT_HOME/var/mason_data/obj/* && service apache2 restart
This is an example for deleting the mason cache and restarting the
Apache HTTP web server on a Debian GNU/Linux based operating system.
AUTHOR
Benjamin Heisig, <[email protected]>
SUPPORT AND DOCUMENTATION
You can find documentation for this module with the "perldoc" command.
perldoc RT::Extension::MandatoryFields
You can also look for information at:
* Search CPAN
<http://search.cpan.org/dist/RT-Extension-MandatoryFields/>
* RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=RT-Extension-MandatoryFiel
ds>
* AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/RT-Extension-MandatoryFields>
* CPAN Ratings
<http://cpanratings.perl.org/d/RT-Extension-MandatoryFields>
BUGS
Please report any bugs or feature requests to the author.
ACKNOWLEDGEMENTS
This extension is a fork of RT::Extension::MandatorySubject written by
Emmanuel Lacour.
Thanks to Davide Imbeni, <[email protected]<gt> for his great
contribution!
COPYRIGHT AND LICENSE
Copyright 2011 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
RT::Extension::MandatorySubject