[rt-users] Modify MyTickets element to include Owner info

William McKee william at knowmad.com
Thu Dec 20 10:51:45 EST 2007


Hi,

I've modified the default MyTickets element to display a list of tickets
from our support queue. This is working nicely, but now I would like to
add the Ticket Owner to the list. I added Owner in the Format option for
/Elements/TicketList but no value is coming through. Am I using the
wrong format or referring to a field that isn't getting loaded?

I've attached my new element.


Thanks,
William

-- 
Knowmad Technologies - Web Site Development & Programming
W: http://www.knowmad.com | E: william at knowmad.com
P: 704.343.9330 | http://www.LinkedIn.com/in/williammckee
-------------- next part --------------
%# Copied from MyTickets

<&|/Elements/TitleBox, 
	title => loc('Open Support Tickets', $rows),
	title_href => "Search/Results.html".$QueryString &>
<& /Elements/TicketList, 
        Format => "'<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus, Owner",

        Query => $Query,
        OrderBy => 'Priority',
        Order => 'DESC',
        Rows => $rows,
        ShowNavigation => 0
        &>
</&> 
<%init>
my $rows = 50;

#my $Query = " Owner = '".$session{'CurrentUser'}->Id."' AND ( Status = 'new' OR Status = 'open')";
my $Query = " Queue='Support' AND ( Status = 'new' OR Status = 'open')";

my $QueryString = '?' . $m->comp('/Elements/QueryString', 
            Query => $Query,
            Order => 'DESC',
            OrderBy => 'Priority') if ($Query);

</%init>



More information about the rt-users mailing list