Hi Matt,

Here's how I use a queue-context scrip to assign owner when an admincc replies to a ticket.

Description: Set owner via e-mail
Condition: User Defined
Action: User Defined
Template: Global template: Blank
Stage: TransactionCreate

Custom condition:
{ ### True if e-mail is from admincc member
  my $Ticket = $self->TicketObj;
  my $Transaction = $self->TransactionObj;
  my $CreatorId = $Transaction->CreatorObj->Id;
  my $Queue = $self->TicketObj->QueueObj;
  my $val = $Transaction->Type eq 'Correspond'
         && $Queue->IsAdminCc($CreatorId);
  return $val;
}

Custom action preparation code:
return 1;

Custom action cleanup code:
### Set owner to e-mail sender
my $Ticket = $self->TicketObj;
my $Transaction = $self->TransactionObj;
my $CreatorId = $Transaction->CreatorObj->Id;
### I use this because I don't want to create a transaction
$Ticket->_Set(Field=>'Owner', Value=>$CreatorId, RecordTransaction=>0);
### Could use the following instead if you don't mind triggering another event
### $Ticket->SetOwner($CreatorId);

Regards,
Gene

At 12:07 AM 7/4/2007, Matt Weller wrote:
Can anyone please help,

I am new to RT and I am trying to work out if I can set the owner of a ticket to be someone who responds to a ticket. Current when a ticket is created a mail is sent to a team of people and it would be useful if as soon as someone updated the ticket is was assigned to that user.

Thanks
Matt This e-mail and any attachments may be confidential and/or legally privileged. If you have received this e-mail and you are not a named addressee, please inform Evolving Systems TIS at [EMAIL PROTECTED] and then delete the e-mail from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail. To ensure regulatory compliance and for the protection of our clients and business, Evolving Systems may monitor and read e-mails sent to and from its servers. Although Evolving Systems routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Evolving Systems makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

Registered Office: One Angel Square, Torrens Street, London. EC1V 1PL. Registered number 2325854
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


--
Gene LeDuc, GSEC
Security Analyst
San Diego State University
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to