Thanks for the tip. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ruslan Zakirov Sent: Thursday, February 07, 2008 9:51 PM To: Kenneth Crocker Cc: Candelario, Bill; [email protected] Subject: Re: [rt-users] Tasks
Bill, Kenneth's example is cool and works, however it notifies old owner when people change owner except when old owner is nobody. To notify new owner you should read http://wiki.bestpractical.com/view/NotifyOwner . On Feb 8, 2008 2:03 AM, Kenneth Crocker <[EMAIL PROTECTED]> wrote: > Bill, > > > Keep in mind, that a "notify .." will not send anything to "whomever" > if "whomever" is the person making the change. As to a scrip to notify > of owner change, I use the following scrip/template code: > > # Scrip code > > # check transaction as an owner change; no spam for "nobody" > # > my $trans = $self->TransactionObj; > > return 0 unless $trans->Field eq 'Owner'; return 1 unless > $trans->OldValue == $RT::Nobody->Id; > > # Template code > > To:{ > my $Old_Owner; > $Old_Owner = RT::User->new($RT::System); > $Old_Owner->Load( $Transaction->OldValue ); > $Old_Owner->EmailAddress(); > } > Subject: Request Titled: "{$Ticket->Subject}" has a new owner! > > ---------------------------------------------------------------------- > ------- > TICKET INFORMATION: > Ticket Queue : {$Ticket->QueueObj->Name} Ticket Number : > {$Ticket->id} Ticket Subject: {$Ticket->Subject} Ticket Description: > { > return $Ticket->FirstCustomFieldValue('Description'); > } > Ticket Priority is: {$Ticket->Priority} > Ticket Created by: {$Ticket->CreatorObj->Name} > Ticket Now Owned by: {$Ticket->OwnerObj->Name} > > > I hope this helps. > > Kenn > LBNL > > > On 2/7/2008 1:24 PM, Candelario, Bill wrote: > > Hi, > > > > Is there a way to create Queue called "Tasks" and when creating a > > task and assigning it to an owner, that it actually emails the owner > > of the ticket. I tried using the "OnCreate..NotifyOwner" scrip but > > it didn't work. Any suggestions? > > > > I'm using version 3.6.4 > > > > Thanks, > > Bill > > > > > > -------------------------------------------------------------------- > > ---- > > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 > -- Best regards, Ruslan. _______________________________________________ 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
