Showing the requestor's real name on the listing page

Hello,

I’d like to show the requestor’s real name on the Search/Listing.html
page of search results. I’ve tried a variety of things:

It was:
{ Header => ‘Requestor(s)’,
TicketAttribute => ‘RequestorsAsString’
},

I’ve tried:
{ Header => ‘Requestor’,
TicketAttribute => ‘TicketObj->Requestor’
},

and a few others without any success.

Thanks in advance,

Colleen Noonan

I’d like to show the requestor’s real name on the Search/Listing.html
page of search results. I’ve tried a variety of things:

I’ve tried:
{ Header => ‘Requestor’,
TicketAttribute => ‘TicketObj->Requestor’
},

Try ‘TicketObj->Requestors->First->OwnerObj->RealName’ in the
TicketAttribute. Milage may vary.

( Objects that you’re walking down in this case are:
RT::Ticket->RT::Watchers->RT::Watcher->RT::User->RealName
->First() is a DBIx::SearchBuilder thing to return the first
record found )

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

This didn’t work, am I missing something?

–colleen

-----Original Message-----
From: Bruce Campbell [mailto:bruce_campbell@ripe.net]
Sent: Friday, May 03, 2002 12:57 AM
To: Colleen
Cc: rt-devel@lists.fsck.com
Subject: Re: [rt-devel] showing the requestor’s real name on the
listing
page

I’d like to show the requestor’s real name on the
Search/Listing.html

This didn’t work, am I missing something?

A quick read made me think that 'Requestors->First->OwnerObj->RealName’
should work; it seems from reading other bits in that dictionary that
TicketObj is implicit.

Tested that. It works. Saw the note in the Owner bit that said it’d be
nice to be able to search. Got curious. Here’s my requestor and owner
bits from config.pm now:

   { Header => 'Requestor(s)',
     TicketAttribute => 'Requestors->First->OwnerObj->RealName',
     SearchLink => 1,
     SearchType => 'Requestor',
     SearchAttribute => 'Requestors->First->OwnerObj->EmailAddress',
     SearchOperator => 'LIKE',
     ExtraLinks => 
       '&StatusOp=%21%3D&ValueOfStatus=dead&ValueOfStatus=resolved'
     },

   # TODO: It would be nice with a link here to the Owner and all
   # other request owned by this Owner.
   { Header => 'Owner', 
     TicketAttribute => 'OwnerObj->RealName',
     SearchLink => 1,
     SearchType => 'Owner',
     SearchAttribute => 'OwnerObj->Name',
     SearchOperator => '%3D',
     ExtraLinks =>
       '&StatusOp=%21%3D&ValueOfStatus=dead&ValueOfStatus=resolved'
   },

…and they take advantage of a patch to WebRT/html/Search/TicketCell
I’ll post in a moment. =]

Cheers!

–j

-----Original Message-----
From: Bruce Campbell [mailto:bruce_campbell@ripe.net]
Sent: Friday, May 03, 2002 12:57 AM
To: Colleen
Cc: rt-devel@lists.fsck.com
Subject: Re: [rt-devel] showing the requestor’s real name on the
listing
page

I’d like to show the requestor’s real name on the
Search/Listing.html

page of search results. I’ve tried a variety of things:

I’ve tried:
{ Header => ‘Requestor’,
TicketAttribute => ‘TicketObj->Requestor’
},

Try ‘TicketObj->Requestors->First->OwnerObj->RealName’ in the
TicketAttribute. Milage may vary.

( Objects that you’re walking down in this case are:
RT::Ticket->RT::Watchers->RT::Watcher->RT::User->RealName
->First() is a DBIx::SearchBuilder thing to return the first
record found )


Bruce Campbell
RIPE
Systems/Network Engineer
NCC
www.ripe.net - PGP562C8B1B
Operations


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel
Jim Meyer, Geek At Large purp@wildbrain.com