[rt-users] Getting owner to change when replying

Chad Scott chad at idworld.net
Thu Jun 5 04:06:14 EDT 2003


Jen:

I've done what you want by modifying the default "AutoOpen" action that 
comes with 3.0.2...

Here's the diff (the file is $RTBASE/lib/RT/Action/AutoOpen.pm)

%cvs diff -C 3 -r rt3-0-2 AutoOpen.pm
Index: AutoOpen.pm
===================================================================
RCS file: /var/db/cvs/rt3/lib/RT/Action/AutoOpen.pm,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.2.2
diff -C3 -r1.1.1.2 -r1.1.1.2.2.2
*** AutoOpen.pm 13 May 2003 21:05:40 -0000      1.1.1.2
--- AutoOpen.pm 15 May 2003 20:41:06 -0000      1.1.1.2.2.2
***************
*** 74,79 ****
--- 74,89 ----
                            Data => 'Ticket auto-opened on incoming 
correspondence'
           );

+       # Set started if it isn't already
+       if ($self->TicketObj->Started eq "") {
+               $self->TicketObj->SetStarted;
+       }
+
+       # Set owner if it isn't already
+       if ($self->TicketObj->IsOwner($RT::Nobody)) {
+               
$self->TicketObj->SetOwner($self->TransactionObj->CreatorObj->id);
+       }
+

       return(1);
   }

On Wednesday, Jun 4, 2003, at 17:07 US/Pacific, jennyw wrote:

> I've noticed that when a user replies to a new ticket, they do not
> become the owner -- it remains owned by nobody. Is there a way to 
> change
> this so that if someone takes an action on a ticket that's owned by
> nobody, they own it?
>
> Thanks!
>
> Jen
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list