Ok it looks like rt-crontool is not finding the new module I created. Where should this new module be located?
Currently it is in the same location as the other modules. /usr/lib/perl5/vendor_perl/5.16.2/RT/Action Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 . 262-783-6261 ext. 2296 [email protected] www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bryon Baker Sent: Thursday, September 26, 2013 12:46 PM To: RT Users Subject: Re: [rt-users] Change Queue Ok tried something on my own I copied "SetPriority.pm" module to ChangeQueue.pm and change code to When I try and execute this with rt-crontool I get [Thu Sep 26 17:39:21 2013] [critical]: Failed to load module RT::Action::ChangeQueue. () at /usr/bin/rt-crontool line 305. (/usr/lib/perl5/vendor_perl/5.16.2/RT.pm:400) Failed to load module RT::Action::ChangeQueue. () at /usr/bin/rt-crontool line 305. I have compared the permissions on both file and everything looks the same. package RT::Action::ChangeQueue; use base 'RT::Action'; use strict; use warnings; #Do what we need to do and send it out. #What does this type of Action does sub Describe { my $self = shift; return (ref $self . " will set a ticket's priority to the argument provided."); } sub Prepare { # nothing to prepare return 1; } sub Commit { my $self = shift; my $currentqueue = $ticket->Queue; ## Did this to validate what is happening before I do it. print "Current Queue $currentqueue, New Queue $self->Argument\n"; # $self->TicketObj->SetQueue($self->Argument); } RT::Base->_ImportOverlays(); 1; Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 . 262-783-6261 ext. 2296 [email protected] www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bryon Baker Sent: Thursday, September 26, 2013 11:54 AM To: RT Users Subject: [rt-users] Change Queue I would like to know if this is the place to ask if someone would write a custom action to be used by rt-crontool? I would like this custom action to change the queue on a ticket based on the list returned by the query from rt-crontool. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 . 262-783-6261 ext. 2296 [email protected] www.copesan.com "Servicing North America with Local Care" -- RT Training in New York, October 8th and 9th: http://bestpractical.com/training -- RT Training in New York, October 8th and 9th: http://bestpractical.com/training -- RT Training in New York, October 8th and 9th: http://bestpractical.com/training
