[rt-users] how to move tickets to different queue?

H Manohar Rayker manohar.r at glowtouch.com
Tue Apr 6 09:38:11 EDT 2010


In continuation for the previous mail - for this purpose I got a small scrip


 

# Domains we want to move

my $domains = {};

 

my %domain_map = (

                   '[EMAIL PROTECTED]'        => "xxxx",

                   '[EMAIL PROTECTED]'        => "yyyy"

                );

 

#Check each of our defined domains for a match

foreach my $domainKey (keys %domain_map ){

if($self->TicketObj->RequestorAddresses =~ /^.*?${domainKey}/) {

    # Domain matches - move to the right queue

    #$self->TicketObj->SetQueue($domain_map{$domainKey});

     

$self->TicketObj->SetQueue(new_queue);

    }

}

 

 

I created a new global scrip for the new queue and put this under the custom
action field of the scrip. Can anyone put some light on this?

 

Thanks

Manohar

  _____  

From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of H Manohar
Rayker
Sent: Tuesday, April 06, 2010 6:41 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] how to move tickets to different queue?

 

Hi,

 

How can I move a ticket to a different queue on the time of creation based
on the senders email domain?

 

For eg: 

 

myname at somedomain.com   tickets should be moved to new_queue

 

 

Thanks

Manohar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100406/b0404ff0/attachment.htm>


More information about the rt-users mailing list