RT-Crontool and userdefined code

Can anybody lead me in the right direction with this? I have created
some code that I would like to execute using RT::Action::UserDefined.pm
but im not to sure how to do it via rt-crontool. Any help would be
appreciated guys.

Thanks,

BenFrom: rt-devel-bounces@lists.bestpractical.com
[mailto:rt-devel-bounces@lists.bestpractical.com] On Behalf Of Ben
Blakely
Sent: Friday, May 05, 2006 2:15 PM
To: rt-devel@lists.bestpractical.com
Subject: [Rt-devel] RT-Crontool search and action

Hello All,

Im trying to search for a ticket in the new and open status with a
certain custom field, if it matches, I would like to move it to a new
queue.

Any ideas? Here is what I have for the search syntax but not sure what
the action syntax is to move it to a new queue. I seached the .pm files
in …/rt3/lib/rt/actions… but cant find anything that would lead me in
the right direction.

/opt/rt3/bin/rt-crontool --search RT::Search::FromSQL --search-arg
"(Status = ‘new’ OR Status = ‘open’) AND Queue = ‘Support Level 1’ AND
’CF.ServiceType’ = ‘Move/Add/Change/Delete - DNS’" --action

Thanks,

Ben

ATT36183.txt (217 Bytes)

At Tuesday 5/9/2006 12:16 PM, Ben Blakely wrote:

Can anybody lead me in the right direction with this? I have created
some code that I would like to execute using
RT::Action::UserDefined.pm but im not to sure how to do it via
rt-crontool. Any help would be appreciated guys.

Thanks,

Ben

We’ve got something set up that works like this:

–action RT::Action::OurCustomAction

and our action code is in local/lib/RT/Action/OurCustomAction.pm - we
created this file based on one of the stock action modules.

Steve