[rt-users] Rt-crontool configure to set/move queue of ticket

a.smith at ldex.co.uk a.smith at ldex.co.uk
Thu Mar 19 10:06:18 EDT 2015


Ok, so I've cobbled together a custom actions module like this:

use strict;
use warnings;
use RT::Queue;
use base qw(RT::Action);

package RT::Action::Test;

my $self;

sub Prepare {
   my $self = shift;


   return 1;
}

sub Commit {
   my $self = shift;

   my ($status, $msg) = $self->TicketObj->SetQueue("Support2nd");
   if ( not $status ) {
     RT::Logger->error("Could not reassign queue: $msg");
}

   return 1;
}

1;


To get to where I want it to be I now need to work out where the 
"--action-arg" is being passed or how to read that from within the 
module, is it the second arguement of $self?
Also what is the easiest way to notify all AdminCCs from within the 
module?

thanks! Andy.



More information about the rt-users mailing list