[rt-users] Condition that checks Owner
Raed El-Hames
rfh at vialtus.com
Wed Mar 17 12:11:59 EDT 2010
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
>
More information about the rt-users
mailing list