<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Kevin, that fixed my issue.<br>
<br>
On 07/22/2011 09:53 AM, Kevin Falcone wrote:
<blockquote cite="mid:20110722135345.GJ1845@jibsheet.com"
type="cite">
<pre wrap="">On Fri, Jul 22, 2011 at 09:15:22AM -0400, Jason Brown wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> Here is the code, I believe this was custom written by a previous employee:
</pre>
</blockquote>
<pre wrap="">
Read the docs for EscalatePriority vs LinearEscalate (you can perldoc
the .pm files in your RT tree).
LinearEscalate can be silent, but uses a different algorithm.
If you can't change algorithms, you can port the features of
LinearEscalate to EscalatePriority and send in a patch
-kevin
</pre>
<blockquote type="cite">
<pre wrap=""> #!/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: [1]<a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>
References
Visible links
1. <a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">
--------
2011 Training: <a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--------
2011 Training: <a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a></pre>
</blockquote>
</body>
</html>