Kris,<br><br>You could just use the scrip I gave you and change the condition to "OnTransaction". That way, if someone touches the ticket and it isn't owned, it will set the User as the new Owner of the ticket. That's pretty extreme though.<br>
<br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 3:01 PM, Kris Germann <span dir="ltr"><<a href="mailto:kris_germann@295.ca">kris_germann@295.ca</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 link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">That’s in Kenn, thanks for the help.</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">There is also something else that’s been in the back of my head for some time. When someone clicks on a ticket subject to open it, it is just a link I presume; however, could the same outcome of the scrip below apply to this as well? Essentially, any possible way for someone to open a ticket would force ownership?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-CA">Kris Germann</span><span style="font-size: 11pt; color: rgb(51, 51, 51);" lang="EN-CA"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal" style="margin-left: 0.5in;"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a> [mailto:<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a>] <b>On Behalf Of </b>Kenneth Crocker<br>
<b>Sent:</b> Tuesday, January 25, 2011 2:55 PM<br><b>To:</b> <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br><b>Subject:</b> Re: [rt-users] Auto-own?</span></p></div>
<div><div></div><div class="h5"><p class="MsoNormal" style="margin-left: 0.5in;"> </p><p class="MsoNormal" style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;">Kris,<br><br>We use a scrip for that:<br><br>Description: Auto Owner<br>
Condition: User Defined<br>Action: User Defined<br>Template: Blank<br>Stage: TransactionBatch<br><br><br>Custom Condition:<br># Check for Ticket Status changed to "open"<br><br>my $trans = $self->TransactionObj;<br>
<br>return ($trans->Type eq "Status" &&<br>        $trans->NewValue eq "open");<br><br>Custom action Prep Code:<br># set owner if Nobody<br><br>my $ticket = $self->TicketObj;<br>my $trans = $self->TransactionObj;<br>
my $owner_id = $trans->CreatorObj->PrincipalId;<br><br>if  ($ticket->OwnerObj->Name() eq 'Nobody' )<br>    {<br>     $ticket->SetOwner($owner_id, 'Force');<br>    }<br><br>return 1;<br><br>Custom action Cleanup Code:<br>
return 1;<br><br>Works for us. Hope it helps.<br><br>Kenn<br>LBNL</p><div><p class="MsoNormal" style="margin-left: 0.5in;">On Tue, Jan 25, 2011 at 11:37 AM, Kris Germann <<a href="mailto:kris_germann@295.ca" target="_blank">kris_germann@295.ca</a>> wrote:</p>
<div><div><p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);">Just wondering if there is a way to give the ticket to a RT user account as soon as they open it, rather than leaving it up to them to ‘Take’ it?</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);">Also, I’m running this report here: Created < '3 days ago' AND ( Status != 'rejected' OR Status != 'resolved' ) , which works for now, but is there a way to tell what this query does (how many tickets are < 3 days), but also tell me <i>how</i> old they actually are?</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);">Thanks</span></p><p class="MsoNormal" style="margin-left: 0.5in;">
<span style="color: rgb(31, 73, 125);"> </span></p><div><p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: rgb(31, 73, 125);" lang="EN-CA">Kris Germann</span></p><p class="MsoNormal" style="margin-left: 0.5in;">
<span style="color: rgb(51, 51, 51);" lang="EN-CA">Fibernetics Corporation</span></p></div><p class="MsoNormal" style="margin-left: 1in;"> </p></div></div></div><p class="MsoNormal" style="margin-left: 0.5in;"> </p></div>
</div></div></div></blockquote></div><br>