X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fetc%2Finitialdata;h=1d8181d1ae6b81551b3d316ac8d31133d747f5b3;hp=e360c5daf77a1654e6dad8f0d3c2e46b213095b9;hb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;hpb=289340780927b5bac2c7604d7317c3063c6dd8cc diff --git a/rt/etc/initialdata b/rt/etc/initialdata index e360c5daf..1d8181d1a 100644 --- a/rt/etc/initialdata +++ b/rt/etc/initialdata @@ -86,6 +86,14 @@ Description => 'Sends mail to the owner', # loc ExecModule => 'Notify', Argument => 'Owner' }, + { Name => 'Notify Ccs as Comment', # loc + Description => 'Sends mail to the Ccs as a comment', # loc + ExecModule => 'NotifyAsComment', + Argument => 'Cc' }, + { Name => 'Notify Ccs', # loc + Description => 'Sends mail to the Ccs', # loc + ExecModule => 'Notify', + Argument => 'Cc' }, { Name => 'Notify AdminCcs as Comment', # loc Description => 'Sends mail to the administrative Ccs as a comment', # loc ExecModule => 'NotifyAsComment', @@ -166,6 +174,13 @@ }, { + Name => 'On Priority Change', # loc + Description => 'Whenever a ticket\'s priority changes', # loc + ApplicableTransTypes => 'Set', + ExecModule => 'PriorityChange', + }, + { + Name => 'On Owner Change', # loc Description => 'Whenever a ticket\'s owner changes', # loc ApplicableTransTypes => 'Any', @@ -336,7 +351,7 @@ batch-process all your pending approvals. Name => "Approval Passed", # loc Description => "Notify Owner of their ticket has been approved by some approver", # loc - Content => 'Subject: Ticket Rejected: {$Ticket->Subject} + Content => 'Subject: Ticket Approved: {$Ticket->Subject} Greetings, @@ -348,7 +363,7 @@ Other approvals may be pending. Name => "All Approvals Passed", # loc Description => "Notify Owner of their ticket has been approved by all approvers", # loc - Content => 'Subject: Ticket Rejected: {$Ticket->Subject} + Content => 'Subject: Ticket Approved: {$Ticket->Subject} Greetings, @@ -373,6 +388,9 @@ Your ticket has been rejected by { eval { $Approval->OwnerObj->Name } }. { ScripCondition => 'On Correspond', ScripAction => 'Open Tickets', Template => 'Blank' }, + { ScripCondition => 'On Owner Change', + ScripAction => 'Notify Owner', + Template => 'Transaction' }, { ScripCondition => 'On Create', ScripAction => 'AutoReply To Requestors', Template => 'AutoReply' }, @@ -567,3 +585,41 @@ return 0; # ignore $passed; Right => 'SuperUser', }, ); + +# Predefined searches + +@Attributes = ( + { Name => 'Search - My Tickets', + Description => '[_1] highest priority tickets I own', # loc + Content => + { Format => "'__id__/TITLE:#', '__Subject__/TITLE:Subject', Priority, QueueName, ExtendedStatus", + Query => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')", + OrderBy => 'Priority', + Order => 'DESC' }, + }, + { Name => 'Search - Unowned Tickets', + Description => '[_1] newest unowned tickets', # loc + Content => +# 'Take' #loc + { Format => "'__id__/TITLE:#', '__Subject__/TITLE:Subject', QueueName, ExtendedStatus, CreatedRelative, '__loc(Take)__/TITLE: ' ", + Query => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')", + OrderBy => 'Created', + Order => 'DESC' }, + }, + { Name => 'HomepageSettings', + Description => 'HomepageSettings', + Content => + { 'body' => # loc + [ { type => 'system', name => 'My Tickets' }, + { type => 'system', name => 'Unowned Tickets' }, + { type => 'component', name => 'QuickCreate'}, + ], + 'summary' => # loc + [ + { type => 'component', name => 'MyReminders' }, + { type => 'component', name => 'Quicksearch' }, + { type => 'component', name => 'RefreshHomepage' }, + ] + }, +} +);