Hey… is it possible to:
-
automatically set the owner of a ticket to the creator of the ticket?
-
automatically change the owner of a ticket to whomever comments on the
ticket?
Hey… is it possible to:
automatically set the owner of a ticket to the creator of the ticket?
automatically change the owner of a ticket to whomever comments on the
ticket?
Hey… is it possible to:
- automatically set the owner of a ticket to the creator of the ticket?
- automatically change the owner of a ticket to whomever comments on the ticket?
Yes. There should be an example Scrip for #2 on the wiki, and #1 is
just a variant of that.
-kevin
Hey… is it possible to:
- automatically set the owner of a ticket to the creator of the ticket?
- automatically change the owner of a ticket to whomever comments on the
ticket?
You should be able to write scrips to do that. Main question is
when in the life of a ticket should those events take place.
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
Description: AutoSetOwner
Condition: On Resolve
Action: User Defined
Custom action preparation code:
return 1;
Custom action cleanup code:
my $Actor = $self->TransactionObj->Creator;
return 1 if $Actor == $RT::SystemUser->id;
return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;
$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: BlankOn Wed, Jul 13, 2011 at 11:27 AM, Mauricio Tavares raubvogel@gmail.comwrote:
On Wed, Jul 13, 2011 at 11:17 AM, Chris Hall hiro24@gmail.com wrote:
Hey… is it possible to:
- automatically set the owner of a ticket to the creator of the ticket?
- automatically change the owner of a ticket to whomever comments on the
ticket?You should be able to write scrips to do that. Main question is
when in the life of a ticket should those events take place.
2011 Training: http://bestpractical.com/services/training.html
2011 Training: http://bestpractical.com/services/training.html