X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rt3%2Finitialdata;h=d1a325530184aa5c84ccb375fbb81d66910afdda;hb=4b97eb6c50faeeaa40660b73cd70c17cc572a2c9;hp=1c34542623b93467a5c0ee4907859fd3389e339c;hpb=e96682462574a33bc990f0f29f6db520f1498596;p=monitor.git diff --git a/rt3/initialdata b/rt3/initialdata index 1c34542..d1a3255 100644 --- a/rt3/initialdata +++ b/rt3/initialdata @@ -62,21 +62,6 @@ @Queues = ({ Name => 'support', Description => 'Support', CorrespondAddress => 'support@PLC_RT_HOSTNAME', - CommentAddress => '', }, - - { Name => 'monitor', - Description => 'Queue for monitor', - CorrespondAddress => 'monitor@PLC_RT_HOSTNAME', - CommentAddress => '', }, - - { Name => 'security', - Description => 'Queue for security issues', - CorrespondAddress => 'security@PLC_RT_HOSTNAME', - CommentAddress => '', }, - - { Name => 'legal', - Description => 'Queue for legal issues', - CorrespondAddress => 'legal@PLC_RT_HOSTNAME', CommentAddress => '', }, { Name => '___Approvals', @@ -233,38 +218,6 @@ Name => 'Blank', # loc Description => 'A blank template', # loc Content => '', }, - { Queue => '0', - Name => 'Autoreply', # loc - Description => 'Default Autoresponse template', # loc - Content => 'Subject: AutoReply: {$Ticket->Subject} - -Hello, - -Thank you very much for reporting this. - -This message was automatically generated in response to the -creation of a trouble ticket regarding: - - "{$Ticket->Subject()}" - -There is no need to reply to this message right now. Your ticket has been -assigned an ID of [{$rtname} #{$Ticket->id()}]. - -Please include the string: - - [{$rtname} #{$Ticket->id}] - -in the subject line of all future correspondence about this issue. To do so, -you may reply to this message. - -Thank you, -{$Ticket->QueueObj->CorrespondAddress()} -{$Ticket->AddCustomFieldValue(Field => 'Problem Category', Value => 'Trivial');} - -------------------------------------------------------------------------- -{$Transaction->Content()} -' - }, { Queue => '0', Name => 'Transaction', # loc @@ -346,41 +299,6 @@ According to our records, your request has been resolved. If you have any further questions or concerns, please respond to this message. ' }, - { - Queue => '0', - Name => 'correspondance with CC', # loc - Description => 'Message with the recipients in the header', # loc - Content => 'RT-Attach-Message: yes - -Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id}) - Owner: {$Ticket->OwnerObj->Name} - Requestor: {$Ticket->RequestorAddresses} -{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } } -================================================== - -{$Transaction->Content()} -' - }, - { - Queue => '0', - Name => 'Create with CC in body', # loc - Description => 'Create with CC in body', # loc - Content => 'RT-Attach-Message: yes - -Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id}) - Owner: {$Ticket->OwnerObj->Name} - Requestor: {$Ticket->RequestorAddresses} -{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } } -================================================== - -{$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon. -Transaction: {$Transaction->Description} - -Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"} - -{$Transaction->Content()} -' - }, { Queue => '___Approvals', Name => "New Pending Approval", # loc Description => @@ -444,40 +362,10 @@ Your ticket has been rejected by { eval { $Approval->OwnerObj->Name } }. { ScripCondition => 'On Owner Change', ScripAction => 'Notify Owner', Template => 'Transaction' }, - { ScripCondition => 'On Create', - ScripAction => 'AutoReply To Requestors', - Template => 'AutoReply' }, - { ScripCondition => 'On Create', - ScripAction => 'Notify AdminCcs', - Template => 'Transaction' }, - { ScripCondition => 'On Correspond', - ScripAction => 'Notify AdminCcs', - Template => 'Admin Correspondence' }, - { ScripCondition => 'On Correspond', - ScripAction => 'Notify Requestors And Ccs', - Template => 'Correspondence' }, { ScripCondition => 'On Correspond', ScripAction => 'Notify Other Recipients', Template => 'Correspondence' }, - { ScripCondition => 'On Comment', - ScripAction => 'Notify AdminCcs As Comment', - Template => 'Admin Comment' }, - { ScripCondition => 'On Comment', - ScripAction => 'Notify Other Recipients As Comment', - Template => 'Correspondence' }, - { ScripCondition => 'On Resolve', - ScripAction => 'Notify Requestors', - Template => 'Resolved' }, - #On Create Autoreply To Requestors with template Autoreply - #On Correspond Notify Requestors, Ccs and AdminCcs with template correspondance with CC - #On Create Notify AdminCcs with template Create with CC in body - - { ScripCondition => 'On Create', - ScripAction => 'Notify AdminCcs', - Template => 'Create with CC in body', }, - { ScripCondition => 'On Correspond', - ScripAction => 'Notify Requestors, Ccs and AdminCcs', - Template => 'correspondance with CC', }, + { Description => "When an approval ticket is created, notify the Owner and AdminCc of the item awaiting their approval", # loc Queue => '___Approvals', ScripCondition => 'User Defined', @@ -646,6 +534,7 @@ return 0; # ignore $passed; { UserId => 'root', # - principalid Right => 'SuperUser', }, + );