<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Bingo. That took care of it. Thanks for the code. <br><br>Kurt<br><br><hr id="zwchr"><b>From: </b>"Kenneth Crocker" <kfcrocker@lbl.gov><br><b>To: </b>rt-users@lists.bestpractical.com<br><b>Sent: </b>Monday, February 14, 2011 9:06:28 AM<br><b>Subject: </b>Re: [rt-users] Notify specific owner on Correspond<br><br>Kurt,<br><br>This (in Custom Condition) will ensure the code is triggered only on Correspondence:<br><br>my $trans = $self->TransactionObj;<br>my $ticket = $self->TicketObj;<br>my $ownerid = $ticket->Owner;<br><br>
return 0 unless ($trans->Type eq 'Correspond' &&<br>                        your owner comparison);<br><br><br>Good luck.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Fri, Feb 11, 2011 at 1:22 PM, Kurt Engle <span dir="ltr"><<a href="mailto:engle@4j.lane.edu" target="_blank">engle@4j.lane.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">Kenn can you give me some pointers on how to do that?<br>
<br>Thanks,<br><br>Kurt<br><br><hr><b>From: </b>"Kenneth Crocker" <<a href="mailto:kfcrocker@lbl.gov" target="_blank">kfcrocker@lbl.gov</a>><br><b>To: </b><a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br>
<b>Sent: </b>Friday, February 11, 2011 12:05:37 PM<br><b>Subject: </b>Re: [rt-users] Notify specific owner on Correspond<div><div></div><div class="h5"><br><br>Kurt,<br><br>I think you need to add a check for a "correspond" transaction to your condition.<br>
<br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Fri, Feb 11, 2011 at 11:37 AM, Kurt Engle <span dir="ltr"><<a href="mailto:engle@4j.lane.edu" target="_blank">engle@4j.lane.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">I have created a scrip that successfully notifies owners but now I need to be able to only run this scrip when a specific owner is listed on the ticket. I am guessing that I need a Custom Condition for this scrip. So far I have the following:<br>

<br>Description: On Correspond notify specific owner<br><span>Condition: User Defined<br>Action: Notify Owner<br>Template: Global template: Admin Correspondence<br>Stage: Transaction Create<br><br>Custom Condition:<br></span>my $trans = $self->TransactionObj;<br>

my $ticket = $self->TicketObj;<br>my $ownerid = $ticket->Owner;<br><br>if ($ownerid = 34) {<br>    return 1;<br>}<br>else {<br>    return 0;<br>}<br><br><br>So far, this scrip does not discriminate based on the ticket owner. <br>

<br>Thanks for your help<br><span>-- <br><font color="#888888">Kurt Engle<br></font></span></div></div></blockquote></div><br>
</div></div><span><br><br>-- <br><font color="#888888"><span></span>-kurt<span></span><br></font></span></div></div></blockquote></div><br>
<span><br><br>-- <br><span name="x"></span>-kurt<span name="x"></span><br></span></div></body></html>