自定义Mantisbt的问题字段和转换

时间:2011-11-01 21:06:42

标签: php mantis

我正在研究Mantisbt 1.2.8,我正在尝试自定义创建问题时显示的字段。到目前为止,我已经能够添加字段,但不能删除/隐藏默认字段。
我找不到一个教程(对于DUMMIES,jeje)步骤解释,显示了:1。如何在创建问题时专门设置字段
2。如何定义自定义工作流状态和转换。

我真的需要一些帮助。

1 个答案:

答案 0 :(得分:2)

您可以在config_inc.php文件中定义字段和工作流状态/转换。

如config_defaults_inc.php中所述(此文件中有很多好消息)

/**
* 'status_enum_workflow' defines the workflow, and reflects a simple
*  2-dimensional matrix. For each existing status, you define which
*  statuses you can go to from that status, e.g. from NEW_ you might list statuses
*  '10:new,20:feedback,30:acknowledged' but not higher ones.
* The following example can be transferred to config_inc.php
* $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
* $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
* $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
* $g_status_enum_workflow[CLOSED] ='50:assigned';
* @global array $g_status_enum_workflow
*/

/**
* An array of the fields to show on the bug report page.
*
* The following fields can not be included:
* id, project, date_submitted, last_updated, status,
* resolution, tags, fixed_in_version, projection, eta,
* reporter.
*
* The following fields must be included:
* category_id, summary, description.
*
* To overload this setting per project, then the settings must be included in the database through
* the generic configuration form.
*
* @global array $g_bug_report_page_fields
*/