[rt-devel] showing the requestor's real name on the listing page
Jim Meyer
purp at wildbrain.com
Fri May 3 17:23:27 EDT 2002
On Fri, 2002-05-03 at 10:51, Colleen wrote:
> 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 at ripe.net]
> > Sent: Friday, May 03, 2002 12:57 AM
> > To: Colleen
> > Cc: rt-devel at lists.fsck.com
> > Subject: Re: [rt-devel] showing the requestor's real name on the
> listing
> > page
> >
> > On Thu, 2 May 2002, Colleen wrote:
> >
> > > 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 at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
--
Jim Meyer, Geek At Large purp at wildbrain.com
More information about the Rt-devel
mailing list