Sub-sorting in dashlet

Moderator: crythias

Locked
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Sub-sorting in dashlet

Post by Mothra »

According the the TicketSearch() method in the Ticket API, this should be possible:

# OrderBy and SortBy as ARRAY for sub sorting (optional)
OrderBy => ['Down', 'Up'],
SortBy => ['Priority', 'Age'],
However, it doesn't seem to work in practice, for instance if I want to sort by Priority, then Age, the following code sorts by priority but, for tickets with equal priority, it sorts the newest tickets to the top instead of the oldest (and I would prefer the latter). Changing the second OrderBy has no effect.

Code: Select all

 <Item Key="Attributes">StateType=open;SortBy=Priority;SortBy=Age;OrderBy=Down;OrderBy=Up;</Item>
Anyone manage to get this to work?
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
knischan
Znuny newbie
Posts: 65
Joined: 29 Sep 2011, 05:18
Znuny Version: 3.0.11
Real Name: Ken
Company: Baltimore City Mayor's Office

Re: Sub-sorting in dashlet

Post by knischan »

Bump... I'm in the same boat.
OTRS 3.0.11 / IIS7 / MSSQL 2005 / VMware ESX
Locked