Jonathan;
What is userid ??
if userid is the numeric id value of the user then what you need is
if ($self->TicketObj->Owner == userid) {
if userid is the user name string then what you need is
if ($self->TicketObj->OwnerObj->Name eq 'userid') {
Roy
Jonathan Rummel wrote:
> Hi all,
>
> All I want to do is execute an action if the Owner is a certain user and I
> can't seem to get it to work. Here is what I'm trying but it is
> unsuccessful:
>
> Custom Condition:
> if ($self->Ticket->OwnerObj->Name eq 'userid') {
> return 1;
> }
> return 0;
>
>
> (I've also tried this: $self->TicketObj->Owner eq 'userid')
>
>
> Can anyone help me out here?
>
> RT 3.6.5
>
> Thanks!
> Jonathan
>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [email protected]
2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22 & 23
Dublin, Ireland - Mar 15 & 16
Boston, MA, USA - April 5 & 6
Washington DC, USA - Oct 25 & 26
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com