RT-Crontab configuration

OK-
I was trying to figure out why the priority of my tickets was not going
up. So I poked arround and found the rt-crontool file. AH-HA! I need to
set up a cron job somewhere to do this. However, rt-crontool does not
appear to be documented anywhere. I eventualy found ./rtcrontool --help,
but that was not very enlightening. I am looking to have the priority of my
tickets move from their origina priority at creation, twards their final
priority at due date. I am guessing I will need to set up a dummy user (rt3
perhaps) who is a member of the group rt, and have the rt-crontool executed
at regular intervals, what I can’t figure out are what options I would use
for rt-crontool. Any ideas?

           - D. Pickard

I have cronjobs like the following:

13 0 * * * /opt/RT/bin/rt-crontool --action RT::Action::EscalatePriority --search RT::Search::ActiveTicketsInQueue --search-arg changecontrol

Change the --search-arg argument to match the queue you want to escalate
priorities for. I do one cronjob per queue – there may be a more efficient
way to do this.

-AaronOn Tue, 17 Feb 2004, Duncan Pickard wrote:

OK-
I was trying to figure out why the priority of my tickets was not going
up. So I poked arround and found the rt-crontool file. AH-HA! I need to
set up a cron job somewhere to do this. However, rt-crontool does not
appear to be documented anywhere. I eventualy found ./rtcrontool --help,
but that was not very enlightening. I am looking to have the priority of my
tickets move from their origina priority at creation, twards their final
priority at due date. I am guessing I will need to set up a dummy user (rt3
perhaps) who is a member of the group rt, and have the rt-crontool executed
at regular intervals, what I can’t figure out are what options I would use
for rt-crontool. Any ideas?

           - D. Pickard

rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I am looking to have the priority of my
tickets move from their origina priority at creation, twards their final
priority at due date. I am guessing I will need to set up a dummy user
(rt3
perhaps) who is a member of the group rt, and have the rt-crontool
executed
at regular intervals, what I can’t figure out are what options I would
use
for rt-crontool. Any ideas?

We used the rt-escalate and rt-remind scripts avaialble on this page:

http://www.fsck.com/pub/rt/contrib/3.0/

and simply added them to crontab.

Crontab Entries for Request Tracker

RT-Escalate.pl escalates the priority of open tickets daily

10 3 * * 1-5 /usr/local/rt3/utils/rt-escalate.pl

RT-Remind.pl generates an email to ticket owners every day

letting them know what tickets they still have open.

10 3 * * 1-5 /usr/local/rt3/utils/rt-remind.pl

End Request Tracker

You can skip the remind script, but our folks seem to like it. :slight_smile:

Joe Micciche

See the HowTos link under
http://wiki.bestpractical.com/cgi-bin/index.cgi?HomePage

I’m running the script as indicated below, but the priorities are being
pegged at 99, regardless of the due date. I’m running:

/opt/rt3/bin/rt-crontool --search
RT::Search::ActiveTicketsInQueue --search-arg Manager
–action RT::Action::EscalatePriority --verbose

The queue is set up to start with a priority of 1, end with a priority of
99, and with requests due in 1 day. However, we often change the due date.

What am I doing wrong? I’ve read RTWiki and the list archives.

Thanks!

Chago

If the ticket is at or past the due date when the script is run, the
priority becomes the max. It’s not clear to me from your description
(due in 1 day. However, we often change the due date), whether or not
the tickets are already past their due date, but it seems likely. Note
that if the due date is past, and the script bumps the priority to 99,
merely changing the due date won’t lower the priority.

-Kelly

-----Original Message-----
From: Adolfo Santiago [mailto:mailbag@anothernet.com]
Sent: Wednesday, February 18, 2004 8:01 PM
To: rt-users@lists.bestpractical.com
Subject: RE: [rt-users] RT-Crontab configuration

I’m running the script as indicated below, but the priorities are
being
pegged at 99, regardless of the due date. I’m running:

/opt/rt3/bin/rt-crontool --search
RT::Search::ActiveTicketsInQueue --search-arg Manager
–action RT::Action::EscalatePriority --verbose

The queue is set up to start with a priority of 1, end with a priority
of
99, and with requests due in 1 day. However, we often change the due
date.

What am I doing wrong? I’ve read RTWiki and the list archives.

Thanks!

Chago

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of asterr
Sent: Tuesday, February 17, 2004 10:21 AM
To: Duncan Pickard
Cc: Rt-Users
Subject: Re: [rt-users] RT-Crontab configuration

I have cronjobs like the following:

13 0 * * * /opt/RT/bin/rt-crontool --action
RT::Action::EscalatePriority --search
RT::Search::ActiveTicketsInQueue --search-arg changecontrol

Change the --search-arg argument to match the queue you want to
escalate
priorities for. I do one cronjob per queue – there may be a
more efficient
way to do this.

-Aaron

OK-
I was trying to figure out why the priority of my tickets
was not going
up. So I poked arround and found the rt-crontool file. AH-HA!
I need to
set up a cron job somewhere to do this. However, rt-crontool does
not
appear to be documented anywhere. I eventualy found
./rtcrontool --help,
but that was not very enlightening. I am looking to have the
priority of my
tickets move from their origina priority at creation, twards their
final
priority at due date. I am guessing I will need to set up a
dummy user (rt3
perhaps) who is a member of the group rt, and have the
rt-crontool executed
at regular intervals, what I can’t figure out are what options
I would use
for rt-crontool. Any ideas?

           - D. Pickard

rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm

** CRM114 Whitelisted by: lists.bestpractical.com **


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm

I see. Basically, our time limits are too short for the escalation
calculation. Not to mention the due date comes up very fast.

I looked around some more and found the EscalatePriorityLinear module and
implemented that. It works quite well.

Chago