まず、Redmine そのものだけではご要望の(Excelでいう条件付き書式)機能は無いと思います。
が、以下の plugin を使って、JavaScript をゴリゴリ書けば実現可能です。
ちなみに mizu さんほど凝ったことはやってませんが、私も、View Customize プラグインを使って、
チケット一覧画面では、ステータスごとに色を「ステータス」の色を以下のように変えています。
ご参考までに。配色のセンスが悪いところは突っ込まないでくださいな。
$(function() {
// ステータス -> 背景色 用テーブル
const status_bgc = {
'新規' : 'crimson',
'進行中' : 'limegreen',
'解決' : 'dodgerblue',
'フィードバック' : 'orangered',
'終了' : 'navy',
'却下' : 'maroon'
};
$('tr').each(function(){
// ステータスに対応して背景色を変更する
const status_s = $(this).children('td.status').text();
$(this).children('td.status').css({
'color': 'white',
'font-weight': 'bold',
'background-color': status_bgc[status_s]
})
});
});
2021年8月10日火曜日 13:04:11 UTC+9 mizu: