]>
Commit | Line | Data |
---|---|---|
dab09ea8 | 1 | # Initial data for a fresh RT installation. |
84fb5b46 MKG |
2 | |
3 | @Users = ( | |
4 | { Name => 'root', | |
5 | Gecos => 'root', | |
6 | RealName => 'Enoch Root', | |
7 | Password => 'password', | |
8 | EmailAddress => "root\@localhost", | |
9 | Comments => 'SuperUser', | |
10 | Privileged => '1', | |
11 | }, | |
12 | ); | |
13 | ||
14 | @Groups = ( | |
15 | ); | |
16 | ||
17 | @Queues = ({ Name => 'General', | |
18 | Description => 'The default queue', | |
19 | CorrespondAddress => "", | |
20 | CommentAddress => "", }, | |
21 | { Name => '___Approvals', | |
22 | Lifecycle => 'approvals', | |
23 | Description => 'A system-internal queue for the approvals system', | |
24 | Disabled => 2, } ); | |
25 | ||
26 | @ScripActions = ( | |
27 | ||
28 | { Name => 'Autoreply To Requestors', # loc | |
29 | Description => | |
30 | 'Always sends a message to the requestors independent of message sender' , # loc | |
31 | ExecModule => 'Autoreply', | |
32 | Argument => 'Requestor' }, | |
33 | { Name => 'Notify Requestors', # loc | |
34 | Description => 'Sends a message to the requestors', # loc | |
35 | ExecModule => 'Notify', | |
36 | Argument => 'Requestor' }, | |
37 | { Name => 'Notify Owner as Comment', # loc | |
38 | Description => 'Sends mail to the owner', # loc | |
39 | ExecModule => 'NotifyAsComment', | |
40 | Argument => 'Owner' }, | |
41 | { Name => 'Notify Owner', # loc | |
42 | Description => 'Sends mail to the owner', # loc | |
43 | ExecModule => 'Notify', | |
44 | Argument => 'Owner' }, | |
45 | { Name => 'Notify Ccs as Comment', # loc | |
46 | Description => 'Sends mail to the Ccs as a comment', # loc | |
47 | ExecModule => 'NotifyAsComment', | |
48 | Argument => 'Cc' }, | |
49 | { Name => 'Notify Ccs', # loc | |
50 | Description => 'Sends mail to the Ccs', # loc | |
51 | ExecModule => 'Notify', | |
52 | Argument => 'Cc' }, | |
53 | { Name => 'Notify AdminCcs as Comment', # loc | |
54 | Description => 'Sends mail to the administrative Ccs as a comment', # loc | |
55 | ExecModule => 'NotifyAsComment', | |
56 | Argument => 'AdminCc' }, | |
57 | { Name => 'Notify AdminCcs', # loc | |
58 | Description => 'Sends mail to the administrative Ccs', # loc | |
59 | ExecModule => 'Notify', | |
60 | Argument => 'AdminCc' }, | |
af59614d MKG |
61 | { Name => 'Notify Owner and AdminCcs', # loc |
62 | Description => 'Sends mail to the Owner and administrative Ccs', # loc | |
63 | ExecModule => 'Notify', | |
64 | Argument => 'Owner,AdminCc' }, | |
84fb5b46 MKG |
65 | { Name => 'Notify Requestors and Ccs as Comment', # loc |
66 | Description => 'Send mail to requestors and Ccs as a comment', # loc | |
67 | ExecModule => 'NotifyAsComment', | |
68 | Argument => 'Requestor,Cc' }, | |
69 | ||
70 | { Name => 'Notify Requestors and Ccs', # loc | |
71 | Description => 'Send mail to requestors and Ccs', # loc | |
72 | ExecModule => 'Notify', | |
73 | Argument => 'Requestor,Cc' }, | |
74 | ||
75 | { Name => 'Notify Owner, Requestors, Ccs and AdminCcs as Comment', # loc | |
76 | Description => 'Send mail to owner and all watchers as a "comment"', # loc | |
77 | ExecModule => 'NotifyAsComment', | |
78 | Argument => 'All' }, | |
79 | { Name => 'Notify Owner, Requestors, Ccs and AdminCcs', # loc | |
80 | Description => 'Send mail to owner and all watchers', # loc | |
81 | ExecModule => 'Notify', | |
82 | Argument => 'All' }, | |
83 | { Name => 'Notify Other Recipients as Comment', # loc | |
84 | Description => 'Sends mail to explicitly listed Ccs and Bccs', # loc | |
85 | ExecModule => 'NotifyAsComment', | |
86 | Argument => 'OtherRecipients' }, | |
87 | { Name => 'Notify Other Recipients', # loc | |
88 | Description => 'Sends mail to explicitly listed Ccs and Bccs', # loc | |
89 | ExecModule => 'Notify', | |
90 | Argument => 'OtherRecipients' }, | |
91 | { Name => 'User Defined', # loc | |
92 | Description => 'Perform a user-defined action', # loc | |
93 | ExecModule => 'UserDefined', }, | |
94 | { Name => 'Create Tickets', # loc | |
95 | Description => | |
96 | 'Create new tickets based on this scrip\'s template', # loc | |
97 | ExecModule => 'CreateTickets', }, | |
98 | { Name => 'Open Tickets', # loc | |
99 | Description => 'Open tickets on correspondence', # loc | |
100 | ExecModule => 'AutoOpen' }, | |
af59614d MKG |
101 | { Name => 'Open Inactive Tickets', # loc |
102 | Description => 'Open inactive tickets', # loc | |
103 | ExecModule => 'AutoOpenInactive' }, | |
84fb5b46 MKG |
104 | { Name => 'Extract Subject Tag', # loc |
105 | Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc | |
106 | ExecModule => 'ExtractSubjectTag' }, | |
af59614d MKG |
107 | { Name => 'Send Forward', # loc |
108 | Description => 'Send forwarded message', # loc | |
109 | ExecModule => 'SendForward', }, | |
84fb5b46 MKG |
110 | ); |
111 | ||
112 | @ScripConditions = ( | |
113 | { Name => 'On Create', # loc | |
114 | Description => 'When a ticket is created', # loc | |
115 | ApplicableTransTypes => 'Create', | |
116 | ExecModule => 'AnyTransaction', }, | |
117 | ||
118 | { Name => 'On Transaction', # loc | |
119 | Description => 'When anything happens', # loc | |
120 | ApplicableTransTypes => 'Any', | |
121 | ExecModule => 'AnyTransaction', }, | |
122 | { | |
123 | ||
124 | Name => 'On Correspond', # loc | |
125 | Description => 'Whenever correspondence comes in', # loc | |
126 | ApplicableTransTypes => 'Correspond', | |
127 | ExecModule => 'AnyTransaction', }, | |
128 | ||
129 | { | |
130 | ||
131 | Name => 'On Forward', # loc | |
132 | Description => 'Whenever a ticket or transaction is forwarded', # loc | |
133 | ApplicableTransTypes => 'Forward Transaction,Forward Ticket', | |
134 | ExecModule => 'AnyTransaction', }, | |
135 | ||
136 | { | |
137 | ||
138 | Name => 'On Forward Ticket', # loc | |
139 | Description => 'Whenever a ticket is forwarded', # loc | |
140 | ApplicableTransTypes => 'Forward Ticket', | |
141 | ExecModule => 'AnyTransaction', }, | |
142 | ||
143 | { | |
144 | ||
145 | Name => 'On Forward Transaction', # loc | |
146 | Description => 'Whenever a transaction is forwarded', # loc | |
147 | ApplicableTransTypes => 'Forward Transaction', | |
148 | ExecModule => 'AnyTransaction', }, | |
149 | ||
150 | { | |
151 | ||
152 | Name => 'On Comment', # loc | |
153 | Description => 'Whenever comments come in', # loc | |
154 | ApplicableTransTypes => 'Comment', | |
155 | ExecModule => 'AnyTransaction' }, | |
156 | { | |
157 | ||
158 | Name => 'On Status Change', # loc | |
159 | Description => 'Whenever a ticket\'s status changes', # loc | |
160 | ApplicableTransTypes => 'Status', | |
161 | ExecModule => 'AnyTransaction', | |
162 | ||
163 | }, | |
164 | { | |
165 | ||
166 | Name => 'On Priority Change', # loc | |
167 | Description => 'Whenever a ticket\'s priority changes', # loc | |
168 | ApplicableTransTypes => 'Set', | |
169 | ExecModule => 'PriorityChange', | |
170 | }, | |
171 | { | |
172 | ||
173 | Name => 'On Owner Change', # loc | |
174 | Description => 'Whenever a ticket\'s owner changes', # loc | |
175 | ApplicableTransTypes => 'Any', | |
176 | ExecModule => 'OwnerChange', | |
177 | ||
178 | }, | |
179 | { | |
180 | ||
181 | Name => 'On Queue Change', # loc | |
182 | Description => 'Whenever a ticket\'s queue changes', # loc | |
183 | ApplicableTransTypes => 'Set', | |
184 | ExecModule => 'QueueChange', | |
185 | ||
186 | }, | |
187 | { Name => 'On Resolve', # loc | |
188 | Description => 'Whenever a ticket is resolved', # loc | |
189 | ApplicableTransTypes => 'Status', | |
190 | ExecModule => 'StatusChange', | |
191 | Argument => 'resolved' | |
192 | ||
193 | }, | |
194 | { Name => 'On Reject', # loc | |
195 | Description => 'Whenever a ticket is rejected', # loc | |
196 | ApplicableTransTypes => 'Status', | |
197 | ExecModule => 'StatusChange', | |
198 | Argument => 'rejected' | |
199 | ||
200 | }, | |
201 | { Name => 'User Defined', # loc | |
202 | Description => 'Whenever a user-defined condition occurs', # loc | |
203 | ApplicableTransTypes => 'Any', | |
204 | ExecModule => 'UserDefined' | |
205 | ||
206 | }, | |
207 | ||
208 | { Name => 'On Close', # loc | |
209 | Description => 'Whenever a ticket is closed', # loc | |
210 | ApplicableTransTypes => 'Status,Set', | |
211 | ExecModule => 'CloseTicket', | |
212 | }, | |
213 | { Name => 'On Reopen', # loc | |
214 | Description => 'Whenever a ticket is reopened', # loc | |
215 | ApplicableTransTypes => 'Status,Set', | |
216 | ExecModule => 'ReopenTicket', | |
217 | }, | |
218 | ||
219 | ); | |
220 | ||
221 | @Templates = ( | |
222 | { Queue => '0', | |
223 | Name => 'Blank', # loc | |
224 | Description => 'A blank template', # loc | |
225 | Content => '', }, | |
226 | { Queue => '0', | |
227 | Name => 'Autoreply', # loc | |
af59614d | 228 | Description => 'Plain text Autoresponse template', # loc |
84fb5b46 MKG |
229 | Content => 'Subject: AutoReply: {$Ticket->Subject} |
230 | ||
231 | ||
232 | Greetings, | |
233 | ||
234 | This message has been automatically generated in response to the | |
235 | creation of a trouble ticket regarding: | |
af59614d | 236 | "{$Ticket->Subject()}", |
84fb5b46 MKG |
237 | a summary of which appears below. |
238 | ||
239 | There is no need to reply to this message right now. Your ticket has been | |
240 | assigned an ID of { $Ticket->SubjectTag }. | |
241 | ||
242 | Please include the string: | |
243 | ||
244 | { $Ticket->SubjectTag } | |
245 | ||
246 | in the subject line of all future correspondence about this issue. To do so, | |
247 | you may reply to this message. | |
248 | ||
249 | Thank you, | |
250 | {$Ticket->QueueObj->CorrespondAddress()} | |
251 | ||
252 | ------------------------------------------------------------------------- | |
253 | {$Transaction->Content()} | |
254 | ' | |
255 | }, | |
af59614d MKG |
256 | { Queue => '0', |
257 | Name => 'Autoreply in HTML', # loc | |
258 | Description => 'HTML Autoresponse template', # loc | |
259 | Content => q[Subject: AutoReply: {$Ticket->Subject} | |
260 | Content-Type: text/html | |
261 | ||
262 | <p>Greetings,</p> | |
263 | ||
264 | <p>This message has been automatically generated in response to the | |
265 | creation of a trouble ticket regarding <b>{$Ticket->Subject()}</b>, | |
266 | a summary of which appears below.</p> | |
84fb5b46 | 267 | |
af59614d MKG |
268 | <p>There is no need to reply to this message right now. Your ticket has been |
269 | assigned an ID of <b>{$Ticket->SubjectTag}</b>.</p> | |
270 | ||
271 | <p>Please include the string <b>{$Ticket->SubjectTag}</b> | |
272 | in the subject line of all future correspondence about this issue. To do so, | |
273 | you may reply to this message.</p> | |
274 | ||
275 | <p>Thank you,<br/> | |
276 | {$Ticket->QueueObj->CorrespondAddress()}</p> | |
277 | ||
278 | <hr/> | |
279 | {$Transaction->Content(Type => 'text/html')} | |
280 | ], | |
281 | }, | |
84fb5b46 MKG |
282 | { Queue => '0', |
283 | Name => 'Transaction', # loc | |
af59614d | 284 | Description => 'Plain text transaction template', # loc |
84fb5b46 MKG |
285 | Content => 'RT-Attach-Message: yes |
286 | ||
287 | ||
288 | {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon. | |
289 | Transaction: {$Transaction->Description} | |
290 | Queue: {$Ticket->QueueObj->Name} | |
291 | Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"} | |
292 | Owner: {$Ticket->OwnerObj->Name} | |
293 | Requestors: {$Ticket->RequestorAddresses} | |
294 | Status: {$Ticket->Status} | |
295 | Ticket <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} > | |
296 | ||
297 | ||
298 | {$Transaction->Content()} | |
299 | ' | |
300 | }, | |
af59614d MKG |
301 | { Queue => '0', |
302 | Name => 'Transaction in HTML', # loc | |
303 | Description => 'HTML transaction template', # loc | |
304 | Content => 'RT-Attach-Message: yes | |
305 | Content-Type: text/html | |
306 | ||
307 | <b>{$Transaction->CreatedAsString}: Request <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{$Ticket->id}</a> was acted upon by {$Transaction->CreatorObj->Name}.</b> | |
308 | <br> | |
309 | <table border="0"> | |
310 | <tr><td align="right"><b>Transaction:</b></td><td>{$Transaction->Description}</td></tr> | |
311 | <tr><td align="right"><b>Queue:</b></td><td>{$Ticket->QueueObj->Name}</td></tr> | |
312 | <tr><td align="right"><b>Subject:</b></td><td>{$Transaction->Subject || $Ticket->Subject || "(No subject given)"} </td></tr> | |
313 | <tr><td align="right"><b>Owner:</b></td><td>{$Ticket->OwnerObj->Name}</td></tr> | |
314 | <tr><td align="right"><b>Requestors:</b></td><td>{$Ticket->RequestorAddresses}</td></tr> | |
315 | <tr><td align="right"><b>Status:</b></td><td>{$Ticket->Status}</td></tr> | |
316 | <tr><td align="right"><b>Ticket URL:</b></td><td><a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a></td></tr> | |
317 | </table> | |
318 | <br/> | |
319 | <br/> | |
320 | {$Transaction->Content( Type => "text/html")} | |
321 | ' | |
322 | }, | |
323 | # Shadow the global templates of the same name to suppress duplicate | |
324 | # notifications until rules is ripped out. | |
325 | { Queue => "___Approvals", | |
326 | Name => "Transaction in HTML", | |
327 | Content => "", | |
328 | }, | |
329 | { Queue => "___Approvals", | |
330 | Name => "Transaction", | |
331 | Content => "", | |
332 | }, | |
84fb5b46 MKG |
333 | { |
334 | ||
335 | Queue => '0', | |
336 | Name => 'Admin Correspondence', # loc | |
af59614d | 337 | Description => 'Plain text admin correspondence template', # loc |
84fb5b46 MKG |
338 | Content => 'RT-Attach-Message: yes |
339 | ||
340 | ||
341 | <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} > | |
342 | ||
343 | {$Transaction->Content()} | |
344 | ' | |
345 | }, | |
af59614d MKG |
346 | { Queue => '0', |
347 | Name => 'Admin Correspondence in HTML', # loc | |
348 | Description => 'HTML admin correspondence template', # loc | |
349 | Content => 'RT-Attach-Message: yes | |
350 | Content-Type: text/html | |
84fb5b46 | 351 | |
af59614d MKG |
352 | Ticket URL: <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a> |
353 | <br /> | |
354 | <br /> | |
355 | {$Transaction->Content(Type => "text/html");} | |
356 | ' | |
357 | }, | |
84fb5b46 MKG |
358 | { Queue => '0', |
359 | Name => 'Correspondence', # loc | |
af59614d | 360 | Description => 'Plain text correspondence template', # loc |
84fb5b46 MKG |
361 | Content => 'RT-Attach-Message: yes |
362 | ||
363 | {$Transaction->Content()} | |
364 | ' | |
365 | }, | |
af59614d MKG |
366 | { Queue => '0', |
367 | Name => 'Correspondence in HTML', # loc | |
368 | Description => 'HTML correspondence template', # loc | |
369 | Content => 'RT-Attach-Message: yes | |
370 | Content-Type: text/html | |
84fb5b46 | 371 | |
af59614d MKG |
372 | {$Transaction->Content( Type => "text/html")} |
373 | ' | |
374 | }, | |
84fb5b46 MKG |
375 | { Queue => '0', |
376 | Name => 'Admin Comment', # loc | |
af59614d | 377 | Description => 'Plain text admin comment template', # loc |
84fb5b46 MKG |
378 | Content => |
379 | 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject||""); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;} | |
380 | RT-Attach-Message: yes | |
381 | ||
382 | ||
383 | {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} | |
384 | This is a comment. It is not sent to the Requestor(s): | |
385 | ||
386 | {$Transaction->Content()} | |
af59614d MKG |
387 | ' |
388 | }, | |
389 | { Queue => '0', | |
390 | Name => 'Admin Comment in HTML', # loc | |
391 | Description => 'HTML admin comment template', # loc | |
392 | Content => | |
393 | 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject||""); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;} | |
394 | RT-Attach-Message: yes | |
395 | Content-Type: text/html | |
396 | ||
397 | <p>This is a comment about <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">ticket {$Ticket->id}</a>. It is not sent to the Requestor(s):</p> | |
398 | ||
399 | {$Transaction->Content(Type => "text/html")} | |
400 | ' | |
401 | }, | |
402 | { Queue => '0', | |
403 | Name => 'Reminder', # loc | |
404 | Description => 'Default reminder template', # loc | |
405 | Content => | |
406 | 'Subject:{$Ticket->Subject} is due {$Ticket->DueObj->AsString} | |
407 | ||
408 | This reminder is for ticket #{$Target = $Ticket->RefersTo->First->TargetObj;$Target->Id}. | |
409 | ||
410 | {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Target->Id} | |
84fb5b46 MKG |
411 | ' |
412 | }, | |
413 | ||
414 | { Queue => '0', | |
415 | Name => 'Status Change', # loc | |
416 | Description => 'Ticket status changed', # loc | |
417 | Content => 'Subject: Status Changed to: {$Transaction->NewValue} | |
418 | ||
419 | ||
420 | {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} | |
421 | ||
422 | {$Transaction->Content()} | |
423 | ' | |
424 | }, | |
af59614d MKG |
425 | { Queue => '0', |
426 | Name => 'Status Change in HTML', # loc | |
427 | Description => 'HTML Ticket status changed', # loc | |
428 | Content => 'Subject: Status Changed to: {$Transaction->NewValue} | |
429 | Content-Type: text/html | |
84fb5b46 | 430 | |
af59614d MKG |
431 | <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a> |
432 | <br/> | |
433 | <br/> | |
434 | {$Transaction->Content(Type => "text/html")} | |
435 | ' | |
436 | }, | |
84fb5b46 MKG |
437 | { |
438 | ||
439 | Queue => '0', | |
440 | Name => 'Resolved', # loc | |
441 | Description => 'Ticket Resolved', # loc | |
442 | Content => 'Subject: Resolved: {$Ticket->Subject} | |
443 | ||
444 | According to our records, your request has been resolved. If you have any | |
445 | further questions or concerns, please respond to this message. | |
af59614d MKG |
446 | ' |
447 | }, | |
448 | { Queue => '0', | |
449 | Name => 'Resolved in HTML', # loc | |
450 | Description => 'HTML Ticket Resolved', # loc | |
451 | Content => 'Subject: Resolved: {$Ticket->Subject} | |
452 | Content-Type: text/html | |
453 | ||
454 | <p>According to our records, your request has been resolved. If you have any further questions or concerns, please respond to this message.</p> | |
84fb5b46 MKG |
455 | ' |
456 | }, | |
457 | { Queue => '___Approvals', | |
458 | Name => "New Pending Approval", # loc | |
459 | Description => | |
460 | "Notify Owners and AdminCcs of new items pending their approval", # loc | |
461 | Content => 'Subject: New Pending Approval: {$Ticket->Subject} | |
462 | ||
463 | Greetings, | |
464 | ||
465 | There is a new item pending your approval: "{$Ticket->Subject()}", | |
466 | a summary of which appears below. | |
467 | ||
468 | Please visit {RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id} | |
469 | to approve or reject this ticket, or {RT->Config->Get(\'WebURL\')}Approvals/ to | |
470 | batch-process all your pending approvals. | |
471 | ||
472 | ------------------------------------------------------------------------- | |
473 | {$Transaction->Content()} | |
af59614d MKG |
474 | ' |
475 | }, | |
476 | { Queue => '___Approvals', | |
477 | Name => "New Pending Approval in HTML", # loc | |
478 | Description => "Notify Owners and AdminCcs of new items pending their approval", # loc | |
479 | Content => 'Subject: New Pending Approval: {$Ticket->Subject} | |
480 | Content-Type: text/html | |
481 | ||
482 | <p>Greetings,</p> | |
483 | ||
484 | <p>There is a new item pending your approval: <b>{$Ticket->Subject()}</b>, | |
485 | a summary of which appears below.</p> | |
486 | ||
487 | <p>Please <a href="{RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}">approve | |
488 | or reject this ticket</a>, or visit the <a href="{RT->Config->Get(\'WebURL\')}Approvals/">approvals | |
489 | overview</a> to batch-process all your pending approvals.</p> | |
490 | ||
491 | <hr /> | |
492 | {$Transaction->Content()} | |
84fb5b46 MKG |
493 | ' |
494 | }, | |
495 | { Queue => '___Approvals', | |
496 | Name => "Approval Passed", # loc | |
497 | Description => | |
498 | "Notify Requestor of their ticket has been approved by some approver", # loc | |
499 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
500 | ||
501 | Greetings, | |
502 | ||
503 | Your ticket has been approved by { eval { $Approver->Name } }. | |
504 | Other approvals may be pending. | |
505 | ||
506 | Approver\'s notes: { $Notes } | |
af59614d MKG |
507 | ' |
508 | }, | |
509 | { Queue => '___Approvals', | |
510 | Name => "Approval Passed in HTML", # loc | |
511 | Description => | |
512 | "Notify Requestor of their ticket has been approved by some approver", # loc | |
513 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
514 | Content-Type: text/html | |
515 | ||
516 | <p>Greetings,</p> | |
517 | ||
518 | <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>. | |
519 | Other approvals may be pending.</p> | |
520 | ||
521 | <p>Approver\'s notes:</p> | |
522 | <blockquote>{ $Notes }</blockquote> | |
84fb5b46 MKG |
523 | ' |
524 | }, | |
525 | { Queue => '___Approvals', | |
526 | Name => "All Approvals Passed", # loc | |
527 | Description => | |
528 | "Notify Requestor of their ticket has been approved by all approvers", # loc | |
529 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
530 | ||
531 | Greetings, | |
532 | ||
533 | Your ticket has been approved by { eval { $Approver->Name } }. | |
534 | Its Owner may now start to act on it. | |
535 | ||
536 | Approver\'s notes: { $Notes } | |
af59614d MKG |
537 | ' |
538 | }, | |
539 | { Queue => '___Approvals', | |
540 | Name => "All Approvals Passed in HTML", # loc | |
541 | Description => | |
542 | "Notify Requestor of their ticket has been approved by all approvers", # loc | |
543 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
544 | Content-Type: text/html | |
545 | ||
546 | <p>Greetings,</p> | |
547 | ||
548 | <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>. | |
549 | Its Owner may now start to act on it.</p> | |
550 | ||
551 | <p>Approver\'s notes:</p> | |
552 | <blockquote>{ $Notes }</blockquote> | |
84fb5b46 MKG |
553 | ' |
554 | }, | |
555 | { Queue => '___Approvals', | |
556 | Name => "Approval Rejected", # loc | |
557 | Description => | |
558 | "Notify Owner of their rejected ticket", # loc | |
559 | Content => 'Subject: Ticket Rejected: {$Ticket->Subject} | |
560 | ||
561 | Greetings, | |
562 | ||
563 | Your ticket has been rejected by { eval { $Approver->Name } }. | |
564 | ||
565 | Approver\'s notes: { $Notes } | |
af59614d MKG |
566 | ' |
567 | }, | |
568 | { Queue => '___Approvals', | |
569 | Name => "Approval Rejected in HTML", # loc | |
570 | Description => | |
571 | "Notify Owner of their rejected ticket", # loc | |
572 | Content => 'Subject: Ticket Rejected: {$Ticket->Subject} | |
573 | Content-Type: text/html | |
574 | ||
575 | <p>Greetings,</p> | |
576 | ||
577 | <p>Your ticket has been rejected by <b>{ eval { $Approver->Name } }</b>.</p> | |
578 | ||
579 | <p>Approver\'s notes:</p> | |
580 | <blockquote>{ $Notes }</blockquote> | |
84fb5b46 MKG |
581 | ' |
582 | }, | |
583 | { Queue => '___Approvals', | |
584 | Name => "Approval Ready for Owner", # loc | |
585 | Description => | |
586 | "Notify Owner of their ticket has been approved and is ready to be acted on", # loc | |
587 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
588 | ||
589 | Greetings, | |
590 | ||
591 | The ticket has been approved, you may now start to act on it. | |
592 | ||
af59614d MKG |
593 | ' |
594 | }, | |
595 | { Queue => '___Approvals', | |
596 | Name => "Approval Ready for Owner in HTML", # loc | |
597 | Description => | |
598 | "Notify Owner of their ticket has been approved and is ready to be acted on", # loc | |
599 | Content => 'Subject: Ticket Approved: {$Ticket->Subject} | |
600 | Content-Type: text/html | |
601 | ||
602 | <p>Greetings,</p> | |
603 | ||
604 | <p>The ticket has been approved, you may now start to act on it.</p> | |
605 | ||
84fb5b46 MKG |
606 | ' |
607 | }, | |
608 | { Queue => 0, | |
609 | Name => "Forward", # loc | |
af59614d | 610 | Description => "Forwarded message", # loc |
84fb5b46 | 611 | Content => q{ |
af59614d MKG |
612 | |
613 | { $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of transaction #".$Transaction->id." of ticket #". $Ticket->id } | |
84fb5b46 MKG |
614 | } |
615 | }, | |
616 | { Queue => 0, | |
617 | Name => "Forward Ticket", # loc | |
af59614d | 618 | Description => "Forwarded ticket message", # loc |
84fb5b46 MKG |
619 | Content => q{ |
620 | ||
af59614d MKG |
621 | { $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of ticket #". $Ticket->id } |
622 | } | |
623 | }, | |
624 | { Queue => 0, | |
625 | Name => "Error: unencrypted message", # loc | |
626 | Description => | |
627 | "Inform user that their unencrypted mail has been rejected", # loc | |
628 | Content => q{Subject: RT requires that all incoming mail be encrypted | |
629 | ||
630 | You received this message because RT received mail from you that was not encrypted. As such, it has been rejected. | |
84fb5b46 MKG |
631 | } |
632 | }, | |
633 | { Queue => 0, | |
634 | Name => "Error: public key", # loc | |
635 | Description => | |
636 | "Inform user that he has problems with public key and couldn't recieve encrypted content", # loc | |
637 | Content => q{Subject: We have no your public key or it's wrong | |
638 | ||
639 | You received this message as we have no your public PGP key or we have a problem with your key. Inform the administrator about the problem. | |
640 | } | |
641 | }, | |
642 | { Queue => 0, | |
643 | Name => "Error to RT owner: public key", # loc | |
644 | Description => | |
645 | "Inform RT owner that user(s) have problems with public keys", # loc | |
646 | Content => q{Subject: Some users have problems with public keys | |
647 | ||
648 | You received this message as RT has problems with public keys of the following user: | |
649 | { | |
650 | foreach my $e ( @BadRecipients ) { | |
651 | $OUT .= "* ". $e->{'Message'} ."\n"; | |
652 | } | |
653 | }} | |
654 | }, | |
655 | { Queue => 0, | |
656 | Name => "Error: no private key", # loc | |
657 | Description => | |
658 | "Inform user that we received an encrypted email and we have no private keys to decrypt", # loc | |
659 | Content => q{Subject: we received message we cannot decrypt | |
660 | ||
661 | You sent an encrypted message with subject '{ $Message->head->get('Subject') }', | |
662 | but we have no private key it's encrypted to. | |
663 | ||
664 | Please, check that you encrypt messages with correct keys | |
665 | or contact the system administrator.} | |
666 | }, | |
667 | { Queue => 0, | |
af59614d | 668 | Name => "Error: bad encrypted data", # loc |
84fb5b46 | 669 | Description => |
af59614d | 670 | "Inform user that a message he sent has invalid encryption data", # loc |
84fb5b46 MKG |
671 | Content => q{Subject: We received a message we cannot handle |
672 | ||
af59614d | 673 | You sent us a message that we cannot handle due to corrupted signature or encrypted block. we get the following error(s): |
84fb5b46 MKG |
674 | { foreach my $msg ( @Messages ) { |
675 | $OUT .= "* $msg\n"; | |
676 | } | |
677 | }} | |
678 | }, | |
679 | { Queue => 0, | |
680 | Name => "PasswordChange", # loc | |
681 | Description => | |
682 | "Inform user that his password has been reset", # loc | |
683 | Content => q{Subject: [{RT->Config->Get('rtname')}] Password reset | |
684 | ||
685 | Greetings, | |
686 | ||
687 | Someone at {$ENV{'REMOTE_ADDR'}} requested a password reset for you on {RT->Config->Get('WebURL')} | |
688 | ||
689 | Your new password is: | |
690 | {$NewPassword} | |
691 | } | |
692 | }, | |
693 | ||
af59614d MKG |
694 | { Queue => '0', |
695 | Name => 'Email Digest', # loc | |
696 | Description => 'Email template for periodic notification digests', # loc | |
697 | Content => q[Subject: RT Email Digest | |
84fb5b46 MKG |
698 | |
699 | { $Argument } | |
700 | ], | |
701 | }, | |
702 | ||
703 | { | |
704 | Queue => 0, | |
705 | Name => "Error: Missing dashboard", # loc | |
706 | Description => | |
707 | "Inform user that a dashboard he subscribed to is missing", # loc | |
708 | Content => q{Subject: [{RT->Config->Get('rtname')}] Missing dashboard! | |
709 | ||
710 | Greetings, | |
711 | ||
712 | You are subscribed to a dashboard that is currently missing. Most likely, the dashboard was deleted. | |
713 | ||
714 | RT will remove this subscription as it is no longer useful. Here's the information RT had about your subscription: | |
715 | ||
716 | DashboardID: { $SubscriptionObj->SubValue('DashboardId') } | |
717 | Frequency: { $SubscriptionObj->SubValue('Frequency') } | |
718 | Hour: { $SubscriptionObj->SubValue('Hour') } | |
719 | { | |
720 | $SubscriptionObj->SubValue('Frequency') eq 'weekly' | |
721 | ? "Day of week: " . $SubscriptionObj->SubValue('Dow') | |
722 | : $SubscriptionObj->SubValue('Frequency') eq 'monthly' | |
723 | ? "Day of month: " . $SubscriptionObj->SubValue('Dom') | |
724 | : '' | |
725 | } | |
726 | } | |
727 | }, | |
728 | ); | |
729 | ||
730 | @Scrips = ( | |
af59614d MKG |
731 | { Description => 'On Comment Notify AdminCcs as Comment', |
732 | ScripCondition => 'On Comment', | |
733 | ScripAction => 'Notify AdminCcs As Comment', | |
734 | Template => 'Admin Comment in HTML' }, | |
735 | { Description => 'On Comment Notify Other Recipients as Comment', | |
736 | ScripCondition => 'On Comment', | |
737 | ScripAction => 'Notify Other Recipients As Comment', | |
738 | Template => 'Correspondence in HTML' }, | |
739 | { Description => 'On Correspond Notify Owner and AdminCcs', | |
84fb5b46 | 740 | ScripCondition => 'On Correspond', |
af59614d MKG |
741 | ScripAction => 'Notify Owner and AdminCcs', |
742 | Template => 'Admin Correspondence in HTML' }, | |
743 | { Description => 'On Correspond Notify Other Recipients', | |
84fb5b46 | 744 | ScripCondition => 'On Correspond', |
af59614d MKG |
745 | ScripAction => 'Notify Other Recipients', |
746 | Template => 'Correspondence in HTML' }, | |
84fb5b46 MKG |
747 | { Description => 'On Correspond Notify Requestors and Ccs', |
748 | ScripCondition => 'On Correspond', | |
749 | ScripAction => 'Notify Requestors And Ccs', | |
af59614d MKG |
750 | Template => 'Correspondence in HTML' }, |
751 | { Description => 'On Correspond Open Inactive Tickets', | |
84fb5b46 | 752 | ScripCondition => 'On Correspond', |
af59614d MKG |
753 | ScripAction => 'Open Inactive Tickets', |
754 | Template => 'Blank' }, | |
755 | { Description => 'On Create Autoreply To Requestors', | |
756 | ScripCondition => 'On Create', | |
757 | ScripAction => 'AutoReply To Requestors', | |
758 | Template => 'AutoReply in HTML' }, | |
759 | { Description => 'On Create Notify Owner and AdminCcs', | |
760 | ScripCondition => 'On Create', | |
761 | ScripAction => 'Notify Owner and AdminCcs', | |
762 | Template => 'Transaction in HTML' }, | |
763 | { Description => 'On Create Notify Ccs', | |
764 | ScripCondition => 'On Create', | |
765 | ScripAction => 'Notify Ccs', | |
766 | Template => 'Correspondence in HTML' }, | |
767 | { Description => 'On Create Notify Other Recipients', | |
768 | ScripCondition => 'On Create', | |
84fb5b46 | 769 | ScripAction => 'Notify Other Recipients', |
af59614d MKG |
770 | Template => 'Correspondence in HTML' }, |
771 | { Description => 'On Owner Change Notify Owner', | |
772 | ScripCondition => 'On Owner Change', | |
773 | ScripAction => 'Notify Owner', | |
774 | Template => 'Transaction in HTML' }, | |
84fb5b46 MKG |
775 | { Description => 'On Resolve Notify Requestors', |
776 | ScripCondition => 'On Resolve', | |
777 | ScripAction => 'Notify Requestors', | |
af59614d | 778 | Template => 'Resolved in HTML' }, |
84fb5b46 MKG |
779 | { Description => "On transaction, add any tags in the transaction's subject to the ticket's subject", |
780 | ScripCondition => 'On Transaction', | |
781 | ScripAction => 'Extract Subject Tag', | |
782 | Template => 'Blank' }, | |
af59614d MKG |
783 | { Description => 'On Forward Transaction Send forwarded message', |
784 | ScripCondition => 'On Forward Transaction', | |
785 | ScripAction => 'Send Forward', | |
786 | Template => 'Forward' }, | |
787 | { Description => 'On Forward Ticket Send forwarded message', | |
788 | ScripCondition => 'On Forward Ticket', | |
789 | ScripAction => 'Send Forward', | |
790 | Template => 'Forward Ticket' }, | |
84fb5b46 MKG |
791 | ); |
792 | ||
793 | @ACL = ( | |
794 | { UserId => 'root', # - principalid | |
795 | Right => 'SuperUser', }, | |
796 | ||
797 | { GroupDomain => 'SystemInternal', | |
798 | GroupType => 'privileged', | |
799 | Right => 'ShowApprovalsTab', }, | |
800 | ||
801 | ); | |
802 | ||
803 | # Predefined searches | |
804 | ||
805 | @Attributes = ( | |
806 | { Name => 'Search - My Tickets', | |
807 | Description => '[_1] highest priority tickets I own', # loc | |
808 | Content => | |
809 | { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',} | |
810 | . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',} | |
811 | . q{Priority, QueueName, ExtendedStatus}, | |
812 | Query => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')", | |
813 | OrderBy => 'Priority', | |
814 | Order => 'DESC' | |
815 | }, | |
816 | }, | |
817 | { Name => 'Search - Unowned Tickets', | |
818 | Description => '[_1] newest unowned tickets', # loc | |
819 | Content => | |
820 | # 'Take' #loc | |
821 | { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',} | |
822 | . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',} | |
823 | . q{QueueName, ExtendedStatus, CreatedRelative, } | |
824 | . q{'<A HREF="__WebPath__/Ticket/Display.html?Action=Take&id=__id__">__loc(Take)__</a>/TITLE:NBSP'}, | |
825 | Query => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')", | |
826 | OrderBy => 'Created', | |
827 | Order => 'DESC' | |
828 | }, | |
829 | }, | |
830 | { Name => 'Search - Bookmarked Tickets', | |
831 | Description => 'Bookmarked Tickets', #loc | |
832 | Content => | |
833 | { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',} | |
834 | . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',} | |
835 | . q{Priority, QueueName, ExtendedStatus, Bookmark}, | |
836 | Query => "id = '__Bookmarked__'", | |
837 | OrderBy => 'LastUpdated', | |
838 | Order => 'DESC' }, | |
839 | }, | |
5b0d0914 MKG |
840 | { |
841 | Name => 'HomepageSettings', | |
842 | Description => 'HomepageSettings', | |
843 | Content => { | |
320f0092 | 844 | 'body' => # loc_left_pair |
5b0d0914 MKG |
845 | [ |
846 | { | |
847 | type => 'system', | |
848 | name => 'My Tickets', # loc | |
849 | }, | |
850 | { | |
851 | type => 'system', | |
852 | name => 'Unowned Tickets' # loc | |
853 | }, | |
854 | { | |
855 | type => 'system', | |
856 | name => 'Bookmarked Tickets' # loc | |
857 | }, | |
858 | { | |
859 | type => 'component', | |
860 | name => 'QuickCreate' # loc | |
861 | }, | |
862 | ], | |
320f0092 | 863 | 'sidebar' => # loc_left_pair |
5b0d0914 MKG |
864 | [ |
865 | { | |
866 | type => 'component', | |
867 | name => 'MyReminders' # loc | |
868 | }, | |
869 | { | |
870 | type => 'component', | |
871 | name => 'Quicksearch' # loc | |
872 | }, | |
873 | { | |
874 | type => 'component', | |
875 | name => 'Dashboards' # loc | |
876 | }, | |
877 | { | |
878 | type => 'component', | |
879 | name => 'RefreshHomepage' # loc | |
880 | }, | |
881 | ], | |
882 | }, | |
84fb5b46 MKG |
883 | }, |
884 | ); |