<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
Kenn<br>
<br>
Jason B. wrote:<br>
<blockquote cite="mid52A6AA62-F06C-4F34-8E3B-F2BB1FF29AAB@sitepier.com"
 type="cite">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?
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Here is what I did.</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Under root I did the following:</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div><span class="Apple-style-span">Configurations -> Global -> <font
 class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">templates</span></font></span></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"><br
 class="khtml-block-placeholder">
  </span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Created the
following template:</span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"><br
 class="khtml-block-placeholder">
  </span></font></div>
  <div>To: { my $old_owner = RT::User->new( $self->CurrentUser );</div>
  <div>        $old_owner->Load( $Transaction->OldValue );</div>
  <div>        $old_owner->EmailAddress() }</div>
  <div>Subject: Ticket #{ $Ticket->Id() } taken by {
$Ticket->OwnerObj->Name() }</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>A ticket you owned:</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>        { $Ticket->Subject() }</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>has been taken by {$Ticket->OwnerObj->Name()}.</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>{ $RT::WebURL }Ticket/Display.html?id={ $Ticket->Id }</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Saved the template.</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Then I went to Global -> Scrips -> New Scrips</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Des: Ticket Stole<font class="Apple-style-span" face="Verdana"
 size="3">n<span class="Apple-style-span" style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Condition: User
Defiened</span></font><font class="Apple-style-span" face="Verdana"
 size="3"><span class="Apple-style-span" style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Action: Notify Other
Requestors  ( I also tried Notified Owner)</span></font><font
 class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Template: Global
Template Ticket Steal</span></font><font class="Apple-style-span"
 face="Verdana" size="3"><span class="Apple-style-span"
 style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Stage:
TransactionCreate</span></font><font class="Apple-style-span"
 face="Verdana" size="3"><span class="Apple-style-span"
 style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;">Custom condition:</span></font><font
 class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"></span></font></div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"><br
 class="khtml-block-placeholder">
  </span></font></div>
  <div>my $trans = $self->TransactionObj; return 0 unless
$trans->Field eq 'Owner'; return 1 if $trans->OldValue !=
RT::Nobody()->id(); return 0;<font class="Apple-style-span"
 face="Verdana" size="3"><span class="Apple-style-span"
 style="font-size: 11px;"></span></font></div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>I am running the RT 3.4.1-2 version from Debian repo.  Also the
bestpractical.com website is going slow.</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>Thanks for the help</div>
  <div><br class="khtml-block-placeholder">
  </div>
  <div>-jb</div>
  <div><font class="Apple-style-span" face="Verdana" size="3"><span
 class="Apple-style-span" style="font-size: 11px;"></span></font></div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>

Community help: <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>
Commercial support: <a class="moz-txt-link-abbreviated" href="mailto:sales@bestpractical.com">sales@bestpractical.com</a>


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at <a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>


We're hiring! Come hack Perl for Best Practical: <a class="moz-txt-link-freetext" href="http://bestpractical.com/about/jobs.html">http://bestpractical.com/about/jobs.html</a></pre>
</blockquote>
</body>
</html>