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: [EMAIL PROTECTED]
P: 704.343.9330 | http://www.LinkedIn.com/in/williammckee
%# 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>

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
    Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to