- 1. ステータスを増やす
1. ステータスを増やす
やりたいことは、2つ。
プロジェクトのステータスと解決状況に「修正中」という状態を増やしたい。
ステータスにあって解決状況にない「完了」を解決状況に加えたい。
削除したい項目もありますが・・・。まあそこは後回しでもよいでしょう。
上記に対して、編集するのは、以下の2つのソースです。
mantis/config_defaults_inc.php ← それぞれのステータスの値を設定
mantis/lang/strings_japanese.txt ← 上記に対するメッセージを設定
(mantis の上位はそれぞれの環境により異なります)
mantis/config_defaults_inc.php は、2か所を以下のように編集します。
ステータスに対応する色
/**
* status color codes, using the Tango color palette
* @global array $g_status_colors
*/
$g_status_colors = array(
'new' => '#fcbdbd', # red (scarlet red #ef2929)
'feedback' => '#e3b7eb', # purple (plum #75507b)
'acknowledged' => '#ffcd85', # orange (orango #f57900)
'confirmed' => '#fff494', # yellow (butter #fce94f)
'assigned' => '#c2dfff', # blue (sky blue #729fcf)
'resolved' => '#d2f5b0', # green (chameleon #8ae234)
'closed' => '#c9ccc4' # grey (aluminum #babdb6)
);
↓
/**
* status color codes, using the Tango color palette
* @global array $g_status_colors
*/
$g_status_colors = array(
'new' => '#fcbdbd', # red (scarlet red #ef2929)
'feedback' => '#e3b7eb', # purple (plum #75507b)
'acknowledged' => '#ffcd85', # orange (orango #f57900)
'confirmed' => '#fff494', # yellow (butter #fce94f)
'assigned' => '#c2dfff', # blue (sky blue #729fcf)
'being' => '#ff1493', # (deeppink #ff1493) ← 追加
'resolved' => '#d2f5b0', # green (chameleon #8ae234)
'closed' => '#c9ccc4' # grey (aluminum #babdb6)
);
ステータスの値
/**
*
* @global string $g_status_enum_string
*/
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
/**
* @@@ for documentation, the values in this list are also used to define
* variables in the language files (e.g., $s_new_bug_title referenced in
* bug_change_status_page.php ). Embedded spaces are converted to underscores
* (e.g., "working on" references $s_working_on_bug_title). They are also
* expected to be English names for the states
* @global string $g_resolution_enum_string
*/
$g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
↓
/**
*
* @global string $g_status_enum_string
*/
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:being,80:resolved,90:closed';
/**
* @@@ for documentation, the values in this list are also used to define
* variables in the language files (e.g., $s_new_bug_title referenced in
* bug_change_status_page.php ). Embedded spaces are converted to underscores
* (e.g., "working on" references $s_working_on_bug_title). They are also
* expected to be English names for the states
* @global string $g_resolution_enum_string
*/
$g_resolution_enum_string = '10:open,15:being,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix,95:closed';
mantis/lang/strings_japanese.txt は、以下のように編集します。
$s_status_enum_string = '10:新規,20:フィードバック,30:内容確認済,40:再現済,50:担当者決定,80:解決済,90:完了';
$s_resolution_enum_string = '10:不明,20:実装済,30:差し戻し,40:再現不可,50:修正不可,60:二重登録,70:修正不要,80:保留,90:後回し';
↓
$s_status_enum_string = '10:新規,20:フィードバック,30:内容確認済,40:再現済,50:担当者決定,60:修正中,80:解決済,90:完了';
$s_resolution_enum_string = '10:不明,15:修正中,20:実装済,30:差し戻し,40:再現不可,50:修正不可,60:二重登録,70:修正不要,80:保留,90:後回し,95:完了';
編集が終わればすぐ使えるようになります。


|