In Dashboard how coloring row's belonging to the given queue

Moderator: crythias

Post Reply
neonbicho2013
Znuny newbie
Posts: 2
Joined: 23 May 2013, 15:49
Znuny Version: 3.2.6
Real Name: Gonzalo
Company: ACLTDA

In Dashboard how coloring row's belonging to the given queue

Post by neonbicho2013 »

Hello,
I am somewhat new to this, and I have not much idea even if you can see in the main console (dashboard) highlighted with some rows colored tickets of particular queue (color conditional to queue).
I edited the file successfully to add columns AgentDashboardTicketGeneric.dtl (adding the owner of the ticket or the name of the queue ..) but with the colors row I'm not sure how.
Thank you in any help.
Regards
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: In Dashboard how coloring row's belonging to the given q

Post by crythias »

In Kernel/Output/HTML/AgentTicketDashboardGeneric.dtl
you have

Code: Select all

        <tr class="MasterAction"> 
Maybe try something like:

Code: Select all

        <tr class="MasterAction QueueColor$Data{"QueueID"}"> 
And then maybe add a CSS file listing to (in sysconfig)
Loader::Agent::CommonCSS###000-Framework
click (+) and give it a name.. maybe QueueColors.css

Create a file /opt/otrs/var/httpd/htdocs/skins/Agent/default/css/QueueColors.css

Code: Select all

tr.QueueColor1 { background-color: white; }
tr.QueueColor2 { background-color: blue; } 
This hasn't been tested, and you should determine your own colors. The IDs are determined by looking at the queue or hovering over a queue link and looking at the status bar.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
claudio
Znuny newbie
Posts: 14
Joined: 10 Feb 2017, 16:31
Znuny Version: 5.0.9

Re: In Dashboard how coloring row's belonging to the given queue

Post by claudio »

Hi, is this solution tested also on otrs 5?

Or there are other tested ways to change the color rows depending on queues?

I wrote this because in otrs 5 I don't have /Kernel/Output/HTML/AgentTicketDashboardGeneric.dtl

So I thought we have another way.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: In Dashboard how coloring row's belonging to the given queue

Post by reneeb »

You can use http://opar.perl-services.de/dist/Ticke ... oked-5.0.3 . You have to activate the Queue-Hook and provide the colors for the queues.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
claudio
Znuny newbie
Posts: 14
Joined: 10 Feb 2017, 16:31
Znuny Version: 5.0.9

Re: In Dashboard how coloring row's belonging to the given queue

Post by claudio »

Hi reneeb,

thanks for your reply.

I'm not a developer and I'm an otrs newbie.

I have some questions about how to use this package and how to "install" it.
Is there some non-technical documentation about it?

Also, I read that you can use it for the ticket overview layout, but my customer asks me to see the different colors in the dashboard.
Is it possible?

thanks
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: In Dashboard how coloring row's belonging to the given queue

Post by reneeb »

The package implements both - overviews and dashboard.

You just have to download the package from OPAR, open the package manager in your OTRS. Then select the downloaded file on the upper left and install it.

Then open SysConfig select group "Ticket", open subgroup TicketOverview, activate option TicketOverview::Hooks and add the colors for the queues in the option Hook::Queues.

that's it.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
claudio
Znuny newbie
Posts: 14
Joined: 10 Feb 2017, 16:31
Znuny Version: 5.0.9

Re: In Dashboard how coloring row's belonging to the given queue

Post by claudio »

Ok done,

it works fine.

Just the last thing: there's a Warning that says "it's not a package verified by otrs", of course, and it's recommended to not use it.

Since it is a customer who has only the production environment, and we cannot go wrong, what kind of Security problems we might encounter?

thanks again
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: In Dashboard how coloring row's belonging to the given queue

Post by jojo »

you should be able to analyse the code and what it is doing so you can verify what it is doing.

So if you trust the way you receive the package and the person who creates it everything is fine. (Renee e.g. is a very trustworthy person)

Technically the OTRS package format can install all kind of files within OTRS, run commands and scripts (as apache user) and can change database
"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
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: In Dashboard how coloring row's belonging to the given queue

Post by pradeepspa »

claudio wrote:Ok done,

it works fine.

Just the last thing: there's a Warning that says "it's not a package verified by otrs", of course, and it's recommended to not use it.

Since it is a customer who has only the production environment, and we cannot go wrong, what kind of Security problems we might encounter?

thanks again

Doesnt work for me. I did exactly what you said except changed the queue names as per my environment.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: In Dashboard how coloring row's belonging to the given queue

Post by reneeb »

"Doesn't work" is not very helpful.

What's your environment? OTRS version, installed addons, ...
Are there any log messages?
Which version of the addon are you using?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply