Turning DueDate color on Dashboard when deadline is reached

Moderator: crythias

Post Reply
DBSRAJW
Znuny newbie
Posts: 23
Joined: 25 Jul 2014, 15:39
Znuny Version: 3.3.12

Turning DueDate color on Dashboard when deadline is reached

Post by DBSRAJW »

Hello,

since some weeks I start again and again new tries to realize a new requirement. It seems to be so easy and maybe it even is, but I do not get a clue where I can change it and neither the internet nor the different forums give me a hint, that anybody already have had the same issue.

Requirement: On the dashboard I have two date fields, which I can add to my list of open and reminder tickets: these are the "DueDate" (ITSMDueDate from the ITSM Package) and "PendingDate" (normal PendingDate from OTRS Tickets). Esspecially on the dashboard, in the part for the reminder tickets, the ticket PendingDate is as long in color black, as the pending date is not reached. After the PendingDate is reached, it turns to red (I attached an example).

Now I need to have the same functionality for the ITSMDueDate, because this is always black, no matter if the ITSMDueDate was reached or not.

Does anybody of you have an idea, where this function is added? I am very sure, that there is no possibility to turn it on in admin / sysconfig, and in the files for the dashboard I have also not found a line
2016-03-04_15-05-52.png
You do not have the required permissions to view the files attached to this post.
OTRS version: 3.3.12
Operating System: VM / Debian7
Database type: MySQL
DBSRAJW
Znuny newbie
Posts: 23
Joined: 25 Jul 2014, 15:39
Znuny Version: 3.3.12

Re: Turning DueDate color on Dashboard when deadline is reached

Post by DBSRAJW »

Sorry, but I would like to push the topic, because this issue was requested again in our company and I have still not found a possibility for realization :(
OTRS version: 3.3.12
Operating System: VM / Debian7
Database type: MySQL
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: Turning DueDate color on Dashboard when deadline is reached

Post by reneeb »

If you want to color the complete row, you could use http://opar.perl-services.de/dist/TicketOverviewHooked. An example of how you could write you own plugin to color the row based on ticket attributes is shown in http://blog.feature-addons.de/2016-05-06-overview-hook (German, but the Perl code should be readable though).

If you want to do it yourself, you could add some javascript that checks the due date columns and change the color if the date is in the past or you could change the Perl code: Add an extra block like https://github.com/OTRS/otrs/blob/maste ... c.pm#L1474 to handle the due date column.
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