<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Thanks! I think that is exactly what I needed.<br>
-Rick<br>
<br>
<div class="moz-cite-prefix">On 1/17/2014 9:52 AM, Emmanuel Lacour
[via RequestTracker] wrote:<br>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:20140117155135.GH8052@easter-eggs.com"
type="cite"> On Fri, Jan 17, 2014 at 07:10:43AM -0800, rwzoerner
wrote:
<br>
> Emmanuel,
<br>
> <br>
> Thanks for great input but those things we are already
doing.
<br>
> The key, though, is that when a new requester IS added,
for any reason,
<br>
> they need to receive an email (the Autoreply template,
actually) letting
<br>
> them know. That's what I need the condition for - how to
trap the addition
<br>
> of a new Requester so I can then Notify Requesters in a
scrip. The normal
<br>
> scrip only fires On Create - I need one to fire On Add
Requester.
<br>
> <br>
<br>
For your UserDefined condition, adding a Requestor is matched via:
<br>
<br>
if ( $self->TransactionObj->Type eq 'AddWatcher' &&
<br>
$self->TransactionObj->Field eq 'Requestor' ) {
<br>
...
<br>
<br>
<br>
you may check also that we are adding a requestor and not changing
an
<br>
existing one:
<br>
<br>
if ( ! $self->TransactionObj->OldValue ) {
<br>
<br>
<br>
The new requestor id will be in
$self->TransactionObj->NewValue, you have to load it as a
RT::User to get the EmailAddress and use it in your template.
<br>
<br>
<br>
-- <br>
Easter-eggs Spécialiste GNU/Linux
<br>
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
<br>
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
<br>
mailto:<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=56341&i=0"
target="_top" rel="nofollow" link="external">[hidden email]</a>
- <a moz-do-not-send="true" href="http://www.easter-eggs.com"
target="_top" rel="nofollow" link="external">http://www.easter-eggs.com</a><br>
<br>
<br>
<hr color="#cccccc" noshade="noshade" size="1">
<div style="color:#444; font: 12px
tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold">If you reply to this email, your
message will be added to the discussion below:</div>
<a moz-do-not-send="true"
href="http://requesttracker.8502.n7.nabble.com/How-to-create-a-scrip-Condition-for-OnAddRequestor-tp56325p56341.html" target="_top" rel="nofollow" link="external">http://requesttracker.8502.n7.nabble.com/How-to-create-a-scrip-Condition-for-OnAddRequestor-tp56325p56341.html</a>
</div>
<div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from How to create a scrip Condition for
OnAddRequestor, <a moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
<a moz-do-not-send="true"
href="http://requesttracker.8502.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
</blockquote>
<br>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://requesttracker.8502.n7.nabble.com/How-to-create-a-scrip-Condition-for-OnAddRequestor-tp56325p56347.html">Re: How to create a scrip Condition for OnAddRequestor</a><br/>
Sent from the <a href="http://requesttracker.8502.n7.nabble.com/Request-Tracker-User-f3.html">Request Tracker - User mailing list archive</a> at Nabble.com.<br/>