-
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
thx for your lovely plugin
depend in examples
https://github.com/onozaty/redmine-view-customize-scripts/blob/master/examples/0032.display_warning_3days_before_due_date/example.md
how i can change color the issue list depend in current-date with cf_1 if cf_1 type date
like if the nowdate > cf_1
color red
if nowdate< cf_1
color orange
$(function() {
const dateCustomField = $('#issue_custom_field_values_1'); // format: date
const now = new Date();
const nowDate = new Date(now.getFullYear(), now.getMonth(), now.getDate());
if (nowDate >= dateCustomField) {
$('table.issues td.cf_1')
.filter(function() {
return $(this).text() == 'A';
})
.parent()
.css({
'font-weight': 'bold'
}
});
Metadata
Metadata
Assignees
Labels
No labels