View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016869||mantisbt||bugtracker||public||2014-01-22 12:28||2020-03-15 15:23|
|Priority||low||Severity||feature||Reproducibility||have not tried|
|Target Version||2.24.0||Fixed in Version||2.24.0|
|Summary||0016869: Change of due date background color|
I was wondering if it is possible to add another background color for the ticket's field "DUE DATE". Right now if due date has been reached, the field becomes red. That's fine, but maybe somebody would know how to add another color, let's say orange or yellow, when there are 2 days till due date. It should work as a reminder when I am directly looking on the list of unassigned tickets.
Could please someone help me in this case? Thanks in advance!
|Tags||No tags attached.|
|related to||0021642||closed||syncguru||mantisbt||Highlight due date when the date has passed|
|related to||0009155||closed||dregad||mantisbt||Cell coloring for due date indicates "overdue" when not overdue yet.|
|child of||0026438||closed||dregad||mantisbt||Allow multiple, customizable due date levels|
|child of||0026775||resolved||dregad||MantisTouch||Allow multiple, customizable due date levels|
Currently the system does not allow "intermediate" states for due date, it's either OK or past the date (red). Introducing another color like you suggest would also require a parameter to define the thresholds.
As a side note, you can change the color by tweaking the CSS (td.overdue).
Thank you for the answer. How shall I proceed with creating new parameter to define the new threshold?
Very much wanted this new potential feature.
Found a neat solution. Testes in version 2.21.1
*Add 2 lines in your config_inc.php file;
*Add two lines in file 'default.css' under 'td.overdue ' near line 95;
*Create two new functions (under function bug_is_overdue) in file /core/bug_api.php;
*Replace function print_column_due_date (near bottom file) in file /core/columns_api.php with;
*Replace function print_column_overdue (bottom file) in file /core/columns_api.php with if you also want to change the 'overdue' column;
*Add two lines in bug_view_inc.php under line 184 't_bug_overdue';
*And replace the #Due Date in file bug_view_inc.php;
EDIT (dregad) markdown formatting
@MPAA to make your changes easier to apply, I would suggest to provide them as a patch, ideally using
I've did some magic, at least for me. My first Github project. Hope this helps.
Thanks. It's better, but still that's not really what I meant... Sorry if I was not clear.
What you should do is
MantisBT: master 1aa2adf8
2020-02-02 11:28:05Details Diff
|Allow multiple, customizable due date levels
New config option defining due date levels allowing administrators to
customize both the number of levels, and the cutover deadlines. CSS can
be used to define the colors.
Fixes 0026438, 0009155, 0016869
0009155, 0016869, 0026438
|mod - bug_update_page.php||Diff File|
|mod - bug_view_inc.php||Diff File|
|mod - config_defaults_inc.php||Diff File|
|mod - core/bug_api.php||Diff File|
|mod - core/columns_api.php||Diff File|
|mod - core/commands/IssueViewPageCommand.php||Diff File|
|mod - css/default.css||Diff File|
|mod - docbook/Admin_Guide/en-US/config/duedate.xml||Diff File|
|mod - lang/strings_english.txt||Diff File|