X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fetc%2Finitialdata;h=7b3f6a6bf0e7ef065551fa39f35b3e29c72cd9a4;hb=a4202b8b4dd50b19d4cb112603be005b66b260c1;hp=89db2cc647fed738d6c97fef532fff5232dc9d5f;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/rt/etc/initialdata b/rt/etc/initialdata index 89db2cc64..7b3f6a6bf 100644 --- a/rt/etc/initialdata +++ b/rt/etc/initialdata @@ -97,6 +97,23 @@ { Name => 'Extract Subject Tag', # loc Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc ExecModule => 'ExtractSubjectTag' }, + + #freeside + { Name => 'Set Priority', + Description => 'Set ticket priority', + ExecModule => 'SetPriority', + Argument => '', + }, + { Name => 'Cancel Scheduled Resolve', + Description => 'Set ticket not to resolve in the future', + ExecModule => 'SetWillResolve', + Argument => '', + }, + { Name => 'Scheduled Resolve', + Description => 'Resolve ticket if its WillResolve date has passed', + ExecModule => 'ScheduledResolve', + Argument => '', + }, ); @ScripConditions = ( @@ -185,6 +202,18 @@ ExecModule => 'ReopenTicket', }, + #freeside + { Name => 'On Custom Field Transaction', + Description => 'When a custom field is changed', + ExecModule => 'CustomFieldTransaction', + ApplicableTransTypes => 'Any', + }, + { Name => 'On Custom Field Change', + Description => 'When a custom field is changed to some value', + ExecModule => 'CustomFieldChange', + ApplicableTransTypes => 'Any', + }, + ); @Templates = ( @@ -270,7 +299,7 @@ you may reply to this message. Name => 'Admin Comment', # loc Description => 'Default admin comment template', # loc Content => -'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]//g; $s =~ s/^Re//i; $s;} +'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;} RT-Attach-Message: yes @@ -331,7 +360,7 @@ batch-process all your pending approvals. Greetings, -Your ticket has been approved by { eval { $Approval->OwnerObj->Name } }. +Your ticket has been approved by { eval { $Approver->Name } }. Other approvals may be pending. Approver\'s notes: { $Notes } @@ -345,7 +374,7 @@ Approver\'s notes: { $Notes } Greetings, -Your ticket has been approved by { eval { $Approval->OwnerObj->Name } }. +Your ticket has been approved by { eval { $Approver->Name } }. Its Owner may now start to act on it. Approver\'s notes: { $Notes } @@ -359,7 +388,7 @@ Approver\'s notes: { $Notes } Greetings, -Your ticket has been rejected by { eval { $Approval->OwnerObj->Name } }. +Your ticket has been rejected by { eval { $Approver->Name } }. Approver\'s notes: { $Notes } ' @@ -486,6 +515,17 @@ Hour: { $SubscriptionObj->SubValue('Hour') } } } }, + { Queue => 0, + Name => 'Custom Field Transaction', + Description => 'Custom field value changed', + Content => q[Subject: {$Transaction->BriefDescription()} + +{RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id} + +{$Transaction->Content()} +], + }, + ); # }}} @@ -534,6 +574,10 @@ Hour: { $SubscriptionObj->SubValue('Hour') } ScripCondition => 'On Transaction', ScripAction => 'Extract Subject Tag', Template => 'Blank' }, + { Description => 'On Correspond, cancel future resolve', + ScripCondition => 'On Correspond', + ScripAction => 'Cancel Scheduled Resolve', + Template => 'Blank' }, ); @ACL = (