1 # Initial data for a fresh RT3 Installation.
6 RealName => 'Enoch Root',
7 Password => 'password',
8 EmailAddress => "root\@localhost",
9 Comments => 'SuperUser',
17 @Queues = ({ Name => 'General',
18 Description => 'The default queue',
19 CorrespondAddress => "",
20 CommentAddress => "", },
21 { Name => '___Approvals',
22 Description => 'A system-internal queue for the approvals system',
27 { Name => 'Autoreply To Requestors', # loc
29 'Always sends a message to the requestors independent of message sender' , # loc
30 ExecModule => 'Autoreply',
31 Argument => 'Requestor' },
32 { Name => 'Notify Requestors', # loc
33 Description => 'Sends a message to the requestors', # loc
34 ExecModule => 'Notify',
35 Argument => 'Requestor' },
36 { Name => 'Notify Owner as Comment', # loc
37 Description => 'Sends mail to the owner', # loc
38 ExecModule => 'NotifyAsComment',
39 Argument => 'Owner' },
40 { Name => 'Notify Owner', # loc
41 Description => 'Sends mail to the owner', # loc
42 ExecModule => 'Notify',
43 Argument => 'Owner' },
44 { Name => 'Notify Ccs as Comment', # loc
45 Description => 'Sends mail to the Ccs as a comment', # loc
46 ExecModule => 'NotifyAsComment',
48 { Name => 'Notify Ccs', # loc
49 Description => 'Sends mail to the Ccs', # loc
50 ExecModule => 'Notify',
52 { Name => 'Notify AdminCcs as Comment', # loc
53 Description => 'Sends mail to the administrative Ccs as a comment', # loc
54 ExecModule => 'NotifyAsComment',
55 Argument => 'AdminCc' },
56 { Name => 'Notify AdminCcs', # loc
57 Description => 'Sends mail to the administrative Ccs', # loc
58 ExecModule => 'Notify',
59 Argument => 'AdminCc' },
61 { Name => 'Notify Requestors and Ccs as Comment', # loc
62 Description => 'Send mail to requestors and Ccs as a comment', # loc
63 ExecModule => 'NotifyAsComment',
64 Argument => 'Requestor,Cc' },
67 # { Name => 'Notify Requestors and Ccs', # loc
68 # Description => 'Send mail to requestors and Ccs', # loc
69 # ExecModule => 'Notify',
70 # Argument => 'Requestor,Cc' },
73 { Name => 'Notify Owner, Requestors, Ccs and AdminCcs as Comment', # loc
74 Description => 'Send mail to owner and all watchers as a "comment"', # loc
75 ExecModule => 'NotifyAsComment',
77 { Name => 'Notify Owner, Requestors, Ccs and AdminCcs', # loc
78 Description => 'Send mail to owner and all watchers', # loc
79 ExecModule => 'Notify',
81 { Name => 'Notify Other Recipients as Comment', # loc
82 Description => 'Sends mail to explicitly listed Ccs and Bccs', # loc
83 ExecModule => 'NotifyAsComment',
84 Argument => 'OtherRecipients' },
86 # { Name => 'Notify Other Recipients', # loc
87 # Description => 'Sends mail to explicitly listed Ccs and Bccs', # loc
88 # ExecModule => 'Notify',
89 # Argument => 'OtherRecipients' },
91 { Name => 'User Defined', # loc
92 Description => 'Perform a user-defined action', # loc
93 ExecModule => 'UserDefined', },
94 { Name => 'Create Tickets', # loc
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' },
101 { Name => 'Extract Subject Tag', # loc
102 Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc
103 ExecModule => 'ExtractSubjectTag' },
106 { Name => 'Set Priority',
107 Description => 'Set ticket priority',
108 ExecModule => 'SetPriority',
111 { Name => 'Cancel Scheduled Resolve',
112 Description => 'Set ticket not to resolve in the future',
113 ExecModule => 'SetWillResolve',
116 { Name => 'Scheduled Resolve',
117 Description => 'Resolve ticket if its WillResolve date has passed',
118 ExecModule => 'ScheduledResolve',
121 # combine these into a single action so they can see each other in the headers
122 { Name => 'Notify Requestors, Ccs, and Other Recipients',
123 Description => 'Send mail to requestors, watchers, and explicit Ccs',
124 ExecModule => 'Notify',
125 Argument => 'Requestor,Cc,OtherRecipients',
130 { Name => 'On Create', # loc
131 Description => 'When a ticket is created', # loc
132 ApplicableTransTypes => 'Create',
133 ExecModule => 'AnyTransaction', },
135 { Name => 'On Transaction', # loc
136 Description => 'When anything happens', # loc
137 ApplicableTransTypes => 'Any',
138 ExecModule => 'AnyTransaction', },
141 Name => 'On Correspond', # loc
142 Description => 'Whenever correspondence comes in', # loc
143 ApplicableTransTypes => 'Correspond',
144 ExecModule => 'AnyTransaction', },
148 Name => 'On Comment', # loc
149 Description => 'Whenever comments come in', # loc
150 ApplicableTransTypes => 'Comment',
151 ExecModule => 'AnyTransaction' },
154 Name => 'On Status Change', # loc
155 Description => 'Whenever a ticket\'s status changes', # loc
156 ApplicableTransTypes => 'Status',
157 ExecModule => 'AnyTransaction',
162 Name => 'On Priority Change', # loc
163 Description => 'Whenever a ticket\'s priority changes', # loc
164 ApplicableTransTypes => 'Set',
165 ExecModule => 'PriorityChange',
169 Name => 'On Owner Change', # loc
170 Description => 'Whenever a ticket\'s owner changes', # loc
171 ApplicableTransTypes => 'Any',
172 ExecModule => 'OwnerChange',
177 Name => 'On Queue Change', # loc
178 Description => 'Whenever a ticket\'s queue changes', # loc
179 ApplicableTransTypes => 'Set',
180 ExecModule => 'QueueChange',
183 { Name => 'On Resolve', # loc
184 Description => 'Whenever a ticket is resolved', # loc
185 ApplicableTransTypes => 'Status',
186 ExecModule => 'StatusChange',
187 Argument => 'resolved'
190 { Name => 'On Reject', # loc
191 Description => 'Whenever a ticket is rejected', # loc
192 ApplicableTransTypes => 'Status',
193 ExecModule => 'StatusChange',
194 Argument => 'rejected'
197 { Name => 'User Defined', # loc
198 Description => 'Whenever a user-defined condition occurs', # loc
199 ApplicableTransTypes => 'Any',
200 ExecModule => 'UserDefined'
204 { Name => 'On Close', # loc
205 Description => 'Whenever a ticket is closed', # loc
206 ApplicableTransTypes => 'Status,Set',
207 ExecModule => 'CloseTicket',
209 { Name => 'On Reopen', # loc
210 Description => 'Whenever a ticket is reopened', # loc
211 ApplicableTransTypes => 'Status,Set',
212 ExecModule => 'ReopenTicket',
216 { Name => 'On Custom Field Transaction',
217 Description => 'When a custom field is changed',
218 ExecModule => 'CustomFieldTransaction',
219 ApplicableTransTypes => 'Any',
221 { Name => 'On Custom Field Change',
222 Description => 'When a custom field is changed to some value',
223 ExecModule => 'CustomFieldChange',
224 ApplicableTransTypes => 'Any',
231 Name => 'Blank', # loc
232 Description => 'A blank template', # loc
235 Name => 'Autoreply', # loc
236 Description => 'Default Autoresponse template', # loc
237 Content => 'Subject: AutoReply: {$Ticket->Subject}
242 This message has been automatically generated in response to the
243 creation of a trouble ticket regarding:
244 "{$Ticket->Subject()}",
245 a summary of which appears below.
247 There is no need to reply to this message right now. Your ticket has been
248 assigned an ID of [{$Ticket->QueueObj->SubjectTag || $rtname} #{$Ticket->id()}].
250 Please include the string:
252 [{$Ticket->QueueObj->SubjectTag || $rtname} #{$Ticket->id}]
254 in the subject line of all future correspondence about this issue. To do so,
255 you may reply to this message.
258 {$Ticket->QueueObj->CorrespondAddress()}
260 -------------------------------------------------------------------------
261 {$Transaction->Content()}
266 Name => 'Transaction', # loc
267 Description => 'Default transaction template', # loc
268 Content => 'RT-Attach-Message: yes
271 {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
272 Transaction: {$Transaction->Description}
273 Queue: {$Ticket->QueueObj->Name}
274 Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"}
275 Owner: {$Ticket->OwnerObj->Name}
276 Requestors: {$Ticket->RequestorAddresses}
277 Status: {$Ticket->Status}
278 Ticket <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
281 {$Transaction->Content()}
288 Name => 'Admin Correspondence', # loc
289 Description => 'Default admin correspondence template', # loc
290 Content => 'RT-Attach-Message: yes
293 <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
295 {$Transaction->Content()}
300 Name => 'Correspondence', # loc
301 Description => 'Default correspondence template', # loc
302 Content => 'RT-Attach-Message: yes
304 {$Transaction->Content()}
309 Name => 'Admin Comment', # loc
310 Description => 'Default admin comment template', # loc
312 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
313 RT-Attach-Message: yes
316 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
317 This is a comment. It is not sent to the Requestor(s):
319 {$Transaction->Content()}
324 Name => 'Status Change', # loc
325 Description => 'Ticket status changed', # loc
326 Content => 'Subject: Status Changed to: {$Transaction->NewValue}
329 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
331 {$Transaction->Content()}
338 Name => 'Resolved', # loc
339 Description => 'Ticket Resolved', # loc
340 Content => 'Subject: Resolved: {$Ticket->Subject}
342 According to our records, your request has been resolved. If you have any
343 further questions or concerns, please respond to this message.
346 { Queue => '___Approvals',
347 Name => "New Pending Approval", # loc
349 "Notify Owners and AdminCcs of new items pending their approval", # loc
350 Content => 'Subject: New Pending Approval: {$Ticket->Subject}
354 There is a new item pending your approval: "{$Ticket->Subject()}",
355 a summary of which appears below.
357 Please visit {RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}
358 to approve or reject this ticket, or {RT->Config->Get(\'WebURL\')}Approvals/ to
359 batch-process all your pending approvals.
361 -------------------------------------------------------------------------
362 {$Transaction->Content()}
365 { Queue => '___Approvals',
366 Name => "Approval Passed", # loc
368 "Notify Requestor of their ticket has been approved by some approver", # loc
369 Content => 'Subject: Ticket Approved: {$Ticket->Subject}
373 Your ticket has been approved by { eval { $Approver->Name } }.
374 Other approvals may be pending.
376 Approver\'s notes: { $Notes }
379 { Queue => '___Approvals',
380 Name => "All Approvals Passed", # loc
382 "Notify Requestor of their ticket has been approved by all approvers", # loc
383 Content => 'Subject: Ticket Approved: {$Ticket->Subject}
387 Your ticket has been approved by { eval { $Approver->Name } }.
388 Its Owner may now start to act on it.
390 Approver\'s notes: { $Notes }
393 { Queue => '___Approvals',
394 Name => "Approval Rejected", # loc
396 "Notify Owner of their rejected ticket", # loc
397 Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
401 Your ticket has been rejected by { eval { $Approver->Name } }.
403 Approver\'s notes: { $Notes }
406 { Queue => '___Approvals',
407 Name => "Approval Ready for Owner", # loc
409 "Notify Owner of their ticket has been approved and is ready to be acted on", # loc
410 Content => 'Subject: Ticket Approved: {$Ticket->Subject}
414 The ticket has been approved, you may now start to act on it.
419 Name => "Forward", # loc
420 Description => "Heading of a forwarded message", # loc
422 This is a forward of transaction #{$Transaction->id} of ticket #{ $Ticket->id }
426 Name => "Forward Ticket", # loc
427 Description => "Heading of a forwarded Ticket", # loc
430 This is a forward of ticket #{ $Ticket->id }
434 Name => "Error: public key", # loc
436 "Inform user that he has problems with public key and couldn't recieve encrypted content", # loc
437 Content => q{Subject: We have no your public key or it's wrong
439 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.
443 Name => "Error to RT owner: public key", # loc
445 "Inform RT owner that user(s) have problems with public keys", # loc
446 Content => q{Subject: Some users have problems with public keys
448 You received this message as RT has problems with public keys of the following user:
450 foreach my $e ( @BadRecipients ) {
451 $OUT .= "* ". $e->{'Message'} ."\n";
456 Name => "Error: no private key", # loc
458 "Inform user that we received an encrypted email and we have no private keys to decrypt", # loc
459 Content => q{Subject: we received message we cannot decrypt
461 You sent an encrypted message with subject '{ $Message->head->get('Subject') }',
462 but we have no private key it's encrypted to.
464 Please, check that you encrypt messages with correct keys
465 or contact the system administrator.}
468 Name => "Error: bad GnuPG data", # loc
470 "Inform user that a message he sent has invalid GnuPG data", # loc
471 Content => q{Subject: We received a message we cannot handle
473 You sent us a message that we cannot handle due to corrupted GnuPG signature or encrypted block. we get the following error(s):
474 { foreach my $msg ( @Messages ) {
480 Name => "PasswordChange", # loc
482 "Inform user that his password has been reset", # loc
483 Content => q{Subject: [{RT->Config->Get('rtname')}] Password reset
487 Someone at {$ENV{'REMOTE_ADDR'}} requested a password reset for you on {RT->Config->Get('WebURL')}
489 Your new password is:
495 Name => 'Email Digest', # loc
496 Description => 'Email template for periodic notification digests', # loc
497 Content => q[Subject: RT Email Digest
505 Name => "Error: Missing dashboard", # loc
507 "Inform user that a dashboard he subscribed to is missing", # loc
508 Content => q{Subject: [{RT->Config->Get('rtname')}] Missing dashboard!
512 You are subscribed to a dashboard that is currently missing. Most likely, the dashboard was deleted.
514 RT will remove this subscription as it is no longer useful. Here's the information RT had about your subscription:
516 DashboardID: { $SubscriptionObj->SubValue('DashboardId') }
517 Frequency: { $SubscriptionObj->SubValue('Frequency') }
518 Hour: { $SubscriptionObj->SubValue('Hour') }
520 $SubscriptionObj->SubValue('Frequency') eq 'weekly'
521 ? "Day of week: " . $SubscriptionObj->SubValue('Dow')
522 : $SubscriptionObj->SubValue('Frequency') eq 'monthly'
523 ? "Day of month: " . $SubscriptionObj->SubValue('Dom')
529 Name => 'Custom Field Transaction',
530 Description => 'Custom field value changed',
531 Content => q[Subject: {$Transaction->BriefDescription()}
533 {RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}
535 {$Transaction->Content()}
543 { Description => 'On Correspond Open Tickets',
544 ScripCondition => 'On Correspond',
545 ScripAction => 'Open Tickets',
546 Template => 'Blank' },
547 { Description => 'On Owner Change Notify Owner',
548 ScripCondition => 'On Owner Change',
549 ScripAction => 'Notify Owner',
550 Template => 'Transaction' },
551 { Description => 'On Create Autoreply To Requestors',
552 ScripCondition => 'On Create',
553 ScripAction => 'AutoReply To Requestors',
554 Template => 'AutoReply' },
555 { Description => 'On Create Notify AdminCcs',
556 ScripCondition => 'On Create',
557 ScripAction => 'Notify AdminCcs',
558 Template => 'Transaction' },
559 { Description => 'On Correspond Notify AdminCcs',
560 ScripCondition => 'On Correspond',
561 ScripAction => 'Notify AdminCcs',
562 Template => 'Admin Correspondence' },
563 # { Description => 'On Correspond Notify Requestors and Ccs',
564 # ScripCondition => 'On Correspond',
565 # ScripAction => 'Notify Requestors And Ccs',
566 # Template => 'Correspondence' },
567 # { Description => 'On Correspond Notify Other Recipients',
568 # ScripCondition => 'On Correspond',
569 # ScripAction => 'Notify Other Recipients',
570 # Template => 'Correspondence' },
571 { Description => 'On Correspond Notify Requestors, Ccs, and Other Recipients',
572 ScripCondition => 'On Correspond',
573 ScripAction => 'Notify Requestors, Ccs, and Other Recipients',
574 Template => 'Correspondence', },
575 { Description => 'On Comment Notify AdminCcs as Comment',
576 ScripCondition => 'On Comment',
577 ScripAction => 'Notify AdminCcs As Comment',
578 Template => 'Admin Comment' },
579 { Description => 'On Comment Notify Other Recipients as Comment',
580 ScripCondition => 'On Comment',
581 ScripAction => 'Notify Other Recipients As Comment',
582 Template => 'Correspondence' },
583 { Description => 'On Resolve Notify Requestors',
584 ScripCondition => 'On Resolve',
585 ScripAction => 'Notify Requestors',
586 Template => 'Resolved' },
587 { Description => "On transaction, add any tags in the transaction's subject to the ticket's subject",
588 ScripCondition => 'On Transaction',
589 ScripAction => 'Extract Subject Tag',
590 Template => 'Blank' },
591 { Description => 'On Correspond, cancel future resolve',
592 ScripCondition => 'On Correspond',
593 ScripAction => 'Cancel Scheduled Resolve',
594 Template => 'Blank' },
598 { UserId => 'root', # - principalid
599 Right => 'SuperUser', },
601 { GroupDomain => 'SystemInternal',
602 GroupType => 'privileged',
603 Right => 'ShowApprovalsTab', },
607 # Predefined searches
610 { Name => 'Search - My Tickets',
611 Description => '[_1] highest priority tickets I own', # loc
613 { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
614 . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
615 . q{Priority, QueueName, ExtendedStatus},
616 Query => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')",
617 OrderBy => 'Priority',
621 { Name => 'Search - Unowned Tickets',
622 Description => '[_1] newest unowned tickets', # loc
625 { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
626 . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
627 . q{QueueName, ExtendedStatus, CreatedRelative, }
628 . q{'<A HREF="__WebPath__/Ticket/Display.html?Action=Take&id=__id__">__loc(Take)__</a>/TITLE:NBSP'},
629 Query => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')",
630 OrderBy => 'Created',
634 { Name => 'Search - Bookmarked Tickets',
635 Description => 'Bookmarked Tickets', #loc
637 { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
638 . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
639 . q{Priority, QueueName, ExtendedStatus, Bookmark},
640 Query => "id = '__Bookmarked__'",
641 OrderBy => 'LastUpdated',
644 { Name => 'HomepageSettings',
645 Description => 'HomepageSettings',
648 [ { type => 'system', name => 'My Tickets' },
649 { type => 'system', name => 'Unowned Tickets' },
650 { type => 'system', name => 'Bookmarked Tickets' },
651 { type => 'component', name => 'QuickCreate' },
655 { type => 'component', name => 'MyReminders' },
656 { type => 'component', name => 'Quicksearch' },
657 { type => 'component', name => 'Dashboards' },
658 { type => 'component', name => 'RefreshHomepage' },
665 # Obsolete/erroneous scrips
667 # $Delete_Scrips{conditionname}{actionname}{templatename}
668 # exists, and the scrip was created by the system user, it
669 # will be deleted on upgrade. Lowercase all the names here.
673 'notify requestors and ccs' => { 'correspondence' => 1 },
674 'notify other recipients' => { 'correspondence' => 1 },