Custom dashlet

Moderator: crythias

Locked
acrodesign
Znuny newbie
Posts: 13
Joined: 30 Oct 2010, 16:10
Znuny Version: 3

Custom dashlet

Post by acrodesign »

Is there a way to get tickets in a certain state (e.g. State='pending reminder')? In general, is there documentation of what can be put in Attributes?

Can I sort the tickets so that by the last update time? It seems to be sorted by the creation time.
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Re: Custom dashlet

Post by Mothra »

Yes, look in the API documentation for Kernel::System::Ticket (in the left-hand panel) and then the method TicketSearch() in the main panel. In there you will find the attributes you can use, as well as the valid SortBy/OrderBy values.

As I mentioned in another of your posts, using Queue names/IDs in the attributes can give unpredictable results. Also, don't use lock status as an attribute, or it will pretty much render the dashlet nonsense.
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
Locked