[rt-users] Suppressing priority messages
Jason Brown
jason.brown at millbrookprinting.com
Fri Jul 22 09:15:22 EDT 2011
Here is the code, I believe this was custom written by a previous employee:
#!/usr/bin/perl
use strict;
use warnings;
# Points to the RT4 library
use lib ("/opt/rt4/lib","/opt/rt4/local/lib");
my $crontool = "/opt/rt4/bin/rt-crontool";
package RT;
use RT::Interface::CLI qw(CleanEnv);
#Clean our the environment
CleanEnv();
# Load the RT configuration
RT::LoadConfig();
# Initialise RT
RT::Init();
my $queues = new RT::Queues($RT::SystemUser);
$queues->LimitToEnabled();
while (my $queue = $queues->Next) {
my $queuename = $queue->Name;
system("$crontool --search RT::Search::ActiveTicketsInQueue " .
"--search-arg \"$queuename\" ".
"--action RT::Action::EscalatePriority");
}
$RT::Handle->Disconnect();
exit 0;
On 07/22/2011 09:04 AM, Kevin Falcone wrote:
> On Fri, Jul 22, 2011 at 08:59:05AM -0400, Jason Brown wrote:
>> Hello all,
>> We have a RT escalation script which is run every hour to
>> increase the priority level of a ticket. In doing so, it creates a
>> lot of noise within the work order itself, placing "Enoch Root -
>> Priority changed" everytime its increased. I was wondering if its
>> possible to suppress those messages?
> Without knowing what the script does, that's hard to say.
> One of the RT::Actions available to rt-crontool has a "skip the
> transaction" message, the other doesn't. If you've written custom
> code, you can steal the skipping code from the correct RT::Action
>
> -kevin
>
>
>
> --------
> 2011 Training: http://bestpractical.com/services/training.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110722/ab2409fe/attachment.htm>
More information about the rt-users
mailing list