[rt-users] Custom Scrip problem

Ken Crocker KFCrocker at lbl.gov
Wed Mar 8 19:49:47 EST 2006


JAson, to whom did you want the e_mail to go to and did you give that 
role (like requestor) or group the "SeeOutgoingMail" priviledge? If not, 
then you can have a hundred scrips that will go nowhere if no one has 
the priviledge of seeing outgoing mail.

Kenn

Jason B. wrote:

> Thanks to everyone who replied to my last e-mail about custom scrips 
> Inquiry, it really helped.  I am working with the RT Essentials trying 
> to get a butter understand of Templates and Scrips so I followed the 
> "Your ticket was stolen Example" but when someone steals the ticket 
> there is not an e-mail sent.  Do you see anything I did wrong?
>
> Here is what I did.
>
> Under root I did the following:
>
> Configurations -> Global -> templates
>
> Created the following template:
>
> To: { my $old_owner = RT::User->new( $self->CurrentUser );
>         $old_owner->Load( $Transaction->OldValue );
>         $old_owner->EmailAddress() }
> Subject: Ticket #{ $Ticket->Id() } taken by { $Ticket->OwnerObj->Name() }
>
> A ticket you owned:
>
>         { $Ticket->Subject() }
>
> has been taken by {$Ticket->OwnerObj->Name()}.
>
> { $RT::WebURL }Ticket/Display.html?id={ $Ticket->Id }
>
>
>
>
> Saved the template.
>
> Then I went to Global -> Scrips -> New Scrips
>
> Des: Ticket Stolen
> Condition: User Defiened
> Action: Notify Other Requestors  ( I also tried Notified Owner)
> Template: Global Template Ticket Steal
> Stage: TransactionCreate
> Custom condition:
>
> my $trans = $self->TransactionObj; return 0 unless $trans->Field eq 
> 'Owner'; return 1 if $trans->OldValue != RT::Nobody()->id(); return 0;
>
>
> I am running the RT 3.4.1-2 version from Debian repo.  Also the 
> bestpractical.com website is going slow.
>
> Thanks for the help
>
> -jb
>
>------------------------------------------------------------------------
>
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>Community help: http://wiki.bestpractical.com
>Commercial support: sales at bestpractical.com
>
>
>Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
>Buy a copy at http://rtbook.bestpractical.com
>
>
>We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060308/c37b82b8/attachment.htm>


More information about the rt-users mailing list