<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 12, 2016 at 5:27 PM, Matt Zagrabelny <span dir="ltr"><<a href="mailto:mzagrabe@d.umn.edu" target="_blank">mzagrabe@d.umn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Asif,<br>
<span class=""><br>
On Fri, Feb 12, 2016 at 3:51 PM, Asif Iqbal <<a href="mailto:vadud3@gmail.com">vadud3@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I am using this scrip, but it does not notify the owner at resolve<br>
><br>
> Description: Reminder to close associated tickets at resolve<br>
> Condition: On Resolve<br>
> Action: Notify Owner<br>
> Template: Global Template: Resolved<br>
> Stage: TransactionCreate<br>
><br>
> I own the ticket and I do have valid email address. But when I resolve the<br>
> ticket I get No recipients found.<br>
<br>
</span>Yep. If you turned up the logging it would probably tell you that you<br>
are the "actor" of the transaction.<br>
<br>
<a href="https://www.bestpractical.com/docs/rt/4.0/RT_Config.html#NotifyActor" rel="noreferrer" target="_blank">https://www.bestpractical.com/docs/rt/4.0/RT_Config.html#NotifyActor</a><br>
<br>
With "Notify *" actions, the actor of a transaction won't get<br>
notified. However "Autoreply *" will fire to its recipient list<br>
regardless of actor.<br>
<span class=""><font color="#888888"><br>
-m<br>
</font></span></blockquote></div><br>Hi All,</div><div class="gmail_extra"><br></div><div class="gmail_extra">With Matt's help I were able to create a custom ScripAction 'Autoreply to Owner' and use that action to notify the owner.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I used <a href="http://requesttracker.wikia.com/wiki/WriteCustomAction">http://requesttracker.wikia.com/wiki/WriteCustomAction</a> as a guide as well.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So I created a dir local/lib/RT/Action and copy lib/RT/Action/Autoreply.pm in this directory as AutoreplyToOwner.pm and renamed the package line accordingly. And under SetRecipients subroutine changed the push line to following to get owners email address</div><div class="gmail_extra"><br></div><div class="gmail_extra"> push(@{$self->{'To'}}, $self->TicketObj->OwnerAsString);</div><div class="gmail_extra"><br></div><div class="gmail_extra">Then registered this module to DB as explained in <a href="http://requesttracker.wikia.com/wiki/AddDatabaseRecords">http://requesttracker.wikia.com/wiki/AddDatabaseRecords</a>. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Now this shows up as one of the Action under Scrip.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I tested and it works perfectly.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks again to Matt!</div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br><br></div>
</div></div>