Change color of tickets on agent dashboard

Moderator: crythias

Post Reply
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Change color of tickets on agent dashboard

Post by IXLabs »

Hi there.

Is there any possibility to change the whole row on the same color of the ticket priority on the agent dashboard? I mean, now if a ticket its very urgen, you get a square of the color red on the agent dashboard close to the ticket, i want to change it to the whole row.
I took a look to AgentDashboardGeneric.dtl but seems pretty cryptic for me.

Anyone know how to do it?

Thanks in advance!
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change color of tickets on agent dashboard

Post by crythias »

The background-color of a cell for a row is determined by
AgentDashboardTicketGeneric

Code: Select all

<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
            <td class="$QData{"ClassTable"} Flags" title="$Text{"$Data{"Title"}"}">
and otrs/var/html/htdocs/skins/Agent/default/css/Core.Table.css

Code: Select all

.DataTable tr:nth-child(even) td {
    background-color: #F5F5F5;
}

.DataTable tr.Even td {
    background-color: #F5F5F5;
}
But what to do about priority?

You'll need CSS for the priority and inject it in the first part:

Code: Select all

<!-- dtl:block:ContentLargeTicketGenericRowMeta -->
            <td class="$QData{"ClassTable"} Flags COLOR_$QData{"Priority"}" title="$Text{"$Data{"Title"}"}">
How you provide the css is up to you... add it as custom or embed it in style markup in the dtl.
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
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Change color of tickets on agent dashboard

Post by IXLabs »

Thanks Crythias, this is exactly what i was looking for

:)
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: Change color of tickets on agent dashboard

Post by sophea »

Dear Sir,

I am using OTRS 6x. How do we can set color / highlight on the ticket base on aging.

Example:

Ticket is older than 7-day --> Yellow
Ticket is older than 10-day --> Red

Thanks in advance.

Regards,
Sophea
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: Change color of tickets on agent dashboard

Post by reneeb »

https://opar.perl-services.de/dist/Tick ... oked-6.0.1 and this Hook: https://gist.github.com/reneeb/0ab3f7aa ... ab25c9d138

The hook has to be activated in the system configuration in the option TicketOverview::Hooks
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
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: Change color of tickets on agent dashboard

Post by sophea »

reneeb wrote: 04 Jul 2018, 09:28 https://opar.perl-services.de/dist/Tick ... oked-6.0.1 and this Hook: https://gist.github.com/reneeb/0ab3f7aa ... ab25c9d138

The hook has to be activated in the system configuration in the option TicketOverview::Hooks
Dear Sir,

Really appreciated for you prompt replied but I am really new experience with OTRS.
Could you please instruct me how to install and activate it?

Regards,
Sophea
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: Change color of tickets on agent dashboard

Post by reneeb »

You need to download the package. You'll get an .opm file then. Open the package manager in the admin area of OTRS. There's a form to upload files in the sidebar on the left.

After you've installed the package, you need to create the file shown in the github gist. Save it as <OTRS_HOME>/Kernel/System/TicketOverview/Hooks/Age.pm (check the correct permissions - compare the permissions with those of other files in OTRS directory).

After that open the system configuration, search for the config option I mentioned above and set Key to "1000" and value to Kernel::System::TicketOverview::Hooks::Age
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
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: Change color of tickets on agent dashboard

Post by sophea »

reneeb wrote: 04 Jul 2018, 14:04 You need to download the package. You'll get an .opm file then. Open the package manager in the admin area of OTRS. There's a form to upload files in the sidebar on the left.

After you've installed the package, you need to create the file shown in the github gist. Save it as <OTRS_HOME>/Kernel/System/TicketOverview/Hooks/Age.pm (check the correct permissions - compare the permissions with those of other files in OTRS directory).

After that open the system configuration, search for the config option I mentioned above and set Key to "1000" and value to Kernel::System::TicketOverview::Hooks::Age
Dear Sir,

I have followed your instruction but all ticket became red color. Whats wrong please?

Regards,
Sophea
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: Change color of tickets on agent dashboard

Post by pradeepspa »

I am having the same issue. Also i am trying to highlight based on priority. Any fix for this?
EmilySimmons
Znuny newbie
Posts: 1
Joined: 12 Jul 2019, 19:35
Znuny Version: OTRS 7

Re: Change color of tickets on agent dashboard

Post by EmilySimmons »

Thanks for sharing! These essential tips are quite helpful to me.
potteroleaga
Znuny newbie
Posts: 1
Joined: 13 Nov 2020, 23:54
Znuny Version: 6.0
Real Name: Kevin Oleaga

Re: Change color of tickets on agent dashboard

Post by potteroleaga »

1. Habitación de colores a los tickets en base al tipo de ticket
a. Ingresar a https://opar.perl-services.de/dist/TicketOverviewHooked y descargar el archivo TicketOverviewHooked-6.0.2.opm
z.png
b. Ingresar en OTRS a Configuración del Sistema
c. Buscar y habilitar AllowNotVerifiedPackages
d. Ingresar a Gestor de Paquetes
e. Cargar el archivo TicketOverviewHooked-6.0.2.opm y presionar Instalar Paquete
f. Ingresar a Configuración del Sistema
g. Buscar y deshabilitar AllowNotVerifiedPackages
h. Ingresar a Configuración del Sistema
i. Buscar TicketOverview::Hooks
j. Modificar el valor por Kernel::System::TicketOverview::Hooks::Types
k. Ingresar a Configuración del Sistema
l. Buscar Hook::Types
m. Agregar el Tipo de Ticket y el color correspondiente fondo de la celda(valores hexadecimales)
n. Buscar Hook::Types::Font
o. Agregar el Tipo de Ticket y el color correspondiente a las letras(valores hexadecimales)
a.png
c.png
You do not have the required permissions to view the files attached to this post.
Kevin Oleaga Garcia
Junior Softwaew Developer
San José, CR
Post Reply