[OTRS6]Default Sorting on Agent Dashboard

Moderator: crythias

Post Reply
derboehsevincent
Znuny newbie
Posts: 5
Joined: 27 Sep 2017, 12:11
Znuny Version: sixsisx

[OTRS6]Default Sorting on Agent Dashboard

Post by derboehsevincent »

Hi, I just converted to Version 6 to see how it looks. Whoever thought that the System Settings in OTRS are too hard to understand, has not seen Version 6 yet :) . Nervermind, where do I find the setting to change the default sorting order on the Agent Dashboard. Currently it's age, ascending but I like to have it descending.

BR
Vince
wurzel
Znuny guru
Posts: 3228
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by wurzel »

Hi,

this should be configurable in new System Configuration

Frontend > Agent > View > Dashboard


Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
derboehsevincent
Znuny newbie
Posts: 5
Joined: 27 Sep 2017, 12:11
Znuny Version: sixsisx

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by derboehsevincent »

Thanks, for the reply.
I've tried to edit
DashboardBackend###0130-TicketOpen (which I assume is the view I'm referring to) and added a new Key/Value

Sort -> Sortby=Age but no luck. No Idea how to say Age descending or ascending.
sort1.png
But Still, wrong direction
sort.png
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by root »

Hi,

It's always a good idea to take in look into the source code (see the parameter module)

https://github.com/OTRS/otrs/blob/maste ... ic.pm#L613

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
derboehsevincent
Znuny newbie
Posts: 5
Joined: 27 Sep 2017, 12:11
Znuny Version: sixsisx

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by derboehsevincent »

Thanks roy,

yes, it's always a good idea to look into the sources, but in a project this large - it's nearly impossible for a non-otrs developer to find the right file/spot. But I finally made it, thanks to your advice, changing Line 618 to

Code: Select all

$TicketSearch{OrderBy} = $TicketSearch{OrderBy} || 'Down';
changes the default sort order.
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by root »

Hi,

I recommend not to change the code, the link was only for information on parameters. You can add the parameter to the SysConfig and you change will survive updates ;-)

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by jojo »

that was not the idea to change the code. It just shoulkd help you to find the correct names for sysconfig
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
derboehsevincent
Znuny newbie
Posts: 5
Joined: 27 Sep 2017, 12:11
Znuny Version: sixsisx

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by derboehsevincent »

:lol: I'm a pragmatic guy. I need things to work. But please, I want to learn. How do I know, by looking at the provided link, that this setting is found under Frontend->Agent->View->TicketStatus? Which doesn't make any sense to me....status != sorting. I only found it by random, while looking for another setting.
scottbrady
Znuny newbie
Posts: 1
Joined: 21 Nov 2017, 19:17
Znuny Version: 6.0.1

Re: [OTRS6]Default Sorting on Agent Dashboard

Post by scottbrady »

Thanks, I just upgraded and was trying to figure this out. From looking at the code referenced I was able to set default sorting for the new and open tickets on the dashboard by adding OrderBy=Down; to the Attributes section for the TicketNew and TicketOpen items in the System Configuration.

Admin > System Configuration > Frontend > Agent > View > Dashboard
new.PNG
open.PNG
You do not have the required permissions to view the files attached to this post.
Post Reply