Apologies, I sent my original reply to Drew personally instead of the list. Here's one other question I had:<br><br>Drew,<br><br>That helped a ton, shesh. Not sure how I missed it!<br><br>Another question. Is there a condition which meets BOTH a comment AND a reply? Would On Correspondance fit that category?
<br><br>Thanks a ton, this is great.
<br><br><br><br><div><span class="gmail_quote">On 10/11/06, <b class="gmail_sendername">Steve Finkelstein</b> <<a href="mailto:stevefink@gmail.com">stevefink@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Drew,<br><br>That helped a ton, shesh. Not sure how I missed it!<br><br>Another question. Is there a condition which meets BOTH a comment AND a reply? Would On Correspondance fit that category?<br><br>Thanks a ton, this is great.
<br><span class="sg"><br>-- Steve</span><div><span class="e" id="q_10e37bca34a0c05f_2"><br><br><br><br><div><span class="gmail_quote">On 10/11/06, <b class="gmail_sendername">Drew Barnes</b> <<a href="mailto:barnesaw@ucrwcu.rwc.uc.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
barnesaw@ucrwcu.rwc.uc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Stage: Disabled means the scrip won't run. You need to set that to<br>TransactionCreate before it will even have a chance.<br><br>DB<br><br>Steve Finkelstein wrote:<br>> Hi all,<br>><br>> I'm trying to automatically assign tickets whenever someone either
<br>><br>> a) comments a ticket or alternatively,<br>> b) responds to a ticket<br>><br>> The conditions are that the current owner is Nobody and the user<br>> cannot be user 'X' (my supervisor for instance, might post comments on
<br>> a ticket first, but he's the boss and we want to exclude him from<br>> getting ownership.) Here's the Scrip I put together thus far. If<br>> anyone can shed some light, that'd be great!<br>><br>> PS: If there is a better forum for me to post this on, I'd be more
<br>> than happy to not waste any of your bandwidth and go there.<br>><br>> Description: Ticket Auto Assign<br>> Condition: On Comment (I'm not sure how to get On Comment AND On reply<br>> at the same time? Need two different Scrips?)
<br>> Action: User Defined<br>> Template: Global Template: Transaction (I'm not sure what this does,<br>> need to look it up on the Wiki)<br>> Stage: Disabled (No idea what this one does either ..)<br>> Custom Condition:
<br>> Custom Action Preparation Code:<br>><br>> my $notOwner = "billybob"; # I don't want billybob to get assigned any<br>> tickets no matter if he replies first<br>> my $Actor = $self->TransactionObj->Creator;
<br>><br>> return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;<br>> $RT::Logger->info("Auto assign ticket #". $self->TicketObj->id ." to<br>> user #". $Actor );<br>
> my ($status, $msg) = $self->TicketObj->SetOwner( $Actor ) unless<br>> $Actor == $notOwner;<br>> unless ( $status ) {<br>> $RT::Logger->error( "Impossible to assign the ticket to $Actor:<br>
> $msg" );<br>> return undef;<br>> }<br>> return 1;<br>> Custom action cleanup code: return 1;<br>><br>> This doesn't look to do the trick. Any suggestions again, would be<br>> more than appreciated.
<br>><br>> Thanks all!<br>> --<br>> Steve<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>><br>> Community help: <a href="http://wiki.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://wiki.bestpractical.com
</a><br>> Commercial support: <a href="mailto:sales@bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sales@bestpractical.com</a><br>><br>><br>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>> Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://rtbook.bestpractical.com</a><br>
<br>--<br>Drew Barnes<br>Applications Analyst<br>Raymond Walters College<br>University of Cincinnati<br><br></blockquote></div><br>
</span></div></blockquote></div><br>