Change color of tickets on agent dashboard

Moderator: crythias

Post Reply
IXLabs
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS 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: 10121
Joined: 04 May 2010, 18:38
OTRS 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 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
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
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS 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
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS 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
OTRS guru
Posts: 4797
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
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 / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

sophea
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS 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
OTRS guru
Posts: 4797
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
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 / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

sophea
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS 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
OTRS newbie
Posts: 64
Joined: 06 May 2016, 14:03
OTRS 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
OTRS newbie
Posts: 1
Joined: 12 Jul 2019, 19:35
OTRS 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.

Post Reply