thanks guys, yeah, scrips are doing the job. #1 has been taken care of w/ a scrip I found on the wiki. #2 eludes me, but I'm working on it. Used this for #1<div><br></div><div><span class="Apple-style-span" style="color: rgb(58, 58, 58); font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 23px; "><pre style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; font-style: inherit; font-weight: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 12px; padding-right: 12px; padding-bottom: 12px; padding-left: 12px; vertical-align: baseline; background-color: rgb(242, 242, 242); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-left-color: rgb(217, 217, 217); line-height: 14px; overflow-x: auto; overflow-y: auto; ">
Description: AutoSetOwner
Condition: On Resolve
Action: User Defined
Custom action preparation code:
return 1;
Custom action cleanup code:
# get actor ID
my $Actor = $self->TransactionObj->Creator;
# if actor is RT_SystemUser then get out of here
return 1 if $Actor == $RT::SystemUser->id;
# get out unless ticket owner is nobody
return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;
# ok, try to change owner
$RT::Logger->info("Auto assign ticket #". $self->TicketObj->id ." to user #". $Actor );
my ($status, $msg) = $self->TicketObj->SetOwner( $Actor );
unless( $status ) {
$RT::Logger->error( "Impossible to assign the ticket to $Actor: $msg" );
return undef;
}
return 1;
Template: Global template: Blank
</pre><div><br></div></span><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 11:27 AM, Mauricio Tavares <span dir="ltr"><<a href="mailto:raubvogel@gmail.com">raubvogel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Wed, Jul 13, 2011 at 11:17 AM, Chris Hall <<a href="mailto:hiro24@gmail.com">hiro24@gmail.com</a>> wrote:<br>
> Hey... is it possible to:<br>
> 1. automatically set the owner of a ticket to the creator of the ticket?<br>
> 2. automatically change the owner of a ticket to whomever comments on the<br>
> ticket?<br>
><br>
</div></div> You should be able to write scrips to do that. Main question is<br>
when in the life of a ticket should those events take place.<br>
<br>
> --------<br>
> 2011 Training: <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br>
><br>
<br>
--------<br>
2011 Training: <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br>
</blockquote></div><br></div>