User can't receive email if status changes to the customized
Posted: 03 Oct 2013, 15:08
Hello moderator,
I want to add some statuses of issue into MantisBT.So I read the corresponding chapters of "Mantis Bug Tracker Administration Guide",and do the following things,
1.I created "custom_constants_inc.php" and located it into the main MantisBT directory.The content of this file is,
<?php
# Custom status code
define( 'disputed', 60 );
define( 'rejected', 100 );
define( 'committed', 70 );
define( 'failed', 75 );
?>
I wanted add these 4 statuses into MantisBT.
2.In "config_inc.php",I defined the new statuses in the enumeration and their color codes.
# Revised enum string with new 4 statuses
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:disputed,70:committed,75:failed,80:resolved,90:closed,100:rejected';
# Status color additions
$g_status_colors['disputed'] = '#FF00FF';
$g_status_colors['committed'] = '#4D4DFF';
$g_status_colors['failed'] = '#BC1717';
$g_status_colors['rejected'] = '#A67D3D';
3.I created "custom_strings_inc.php" and located it into the main MantisBT directory.The content of this file is,
<?php
switch( $g_active_language ) {
case 'chinese_simplified':
$s_status_enum_string = '10:新建,20:反馈,30:认可,40:已确认,50:已分派,60:有争议,70:已提交,75:验证失败,80:已解决,90:已关闭,100:已拒绝';
//用于自定义状态“有争议”的字符串
$s_disputed_bug_title = '此问题有争议';
$s_disputed_bug_button = '存在争议';
$s_email_notification_title_for_status_bug_disputed = '下列问题有争议';
//用于自定义状态“已提交”的字符串
$s_committed_bug_title = '问题的修复已提交';
$s_committed_bug_button = '已提交';
$s_email_notification_title_for_status_bug_committed = '下列问题的修复已提交';
//用于自定义状态“验证失败”的字符串
$s_failed_bug_title = '验证失败';
$s_failed_bug_button = '验证失败';
$s_email_notification_title_for_status_bug_failed = '下列问题验证失败';
//用于自定义状态“已拒绝”的字符串
$s_rejected_bug_title = '拒绝修改';
$s_rejected_bug_button = '拒绝修改';
$s_email_notification_title_for_status_bug_rejected = '下列问题被拒绝修改';
break;
default: # english
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:disputed,70:committed,75:failed,80:resolved,90:closed,100:rejected';
//Strings to the customized status "disputed"
$s_disputed_bug_title = 'Disputation Exists';
$s_disputed_bug_button = 'Disputation Exists';
$s_email_notification_title_for_status_bug_disputed = 'The following issue is DISPUTED.';
//Strings to the customized status "committed"
$s_committed_bug_title = 'Code to fix this issue has been committed';
$s_committed_bug_button = 'Be Committed';
$s_email_notification_title_for_status_bug_committed = 'Code to fix the following issue has been COMMITTED.';
//Strings to the customized status “failed”
$s_failed_bug_title = 'Failed in the verification';
$s_failed_bug_button = 'Failed';
$s_email_notification_title_for_status_bug_failed = 'The following issue has been failed in the verification.';
//Strings to the customized status “rejected”
$s_rejected_bug_title = 'Reject to fix';
$s_rejected_bug_button = 'Reject to fix';
$s_email_notification_title_for_status_bug_rejected = 'The following issue has been rejected to fix.';
break;
}
?>
4.I navigated to "Manage"-"Manage Configuration"-"Workflow Transitions" and did some settings,as follows, 5.Then I navigated to "Manage"-"Manage Configuration"-"E-mail Notifications" and did some settings,as follows, In the above picture,CMO is customized by me.
Now I met a problem.If I set the status of an issue to disputed,committed and failed,corresponding users can't receive any e-mail.If I set the status of an issue to rejected,user can get an e-mail,but the title isn't $s_email_notification_title_for_status_bug_rejected but $s_email_notification_title_for_status_bug_closed.
Could you help me to point my errors?Thank you very much!
I did these under MantisBT V1.2.14 and XAMPP win32-1.7.4.
I want to add some statuses of issue into MantisBT.So I read the corresponding chapters of "Mantis Bug Tracker Administration Guide",and do the following things,
1.I created "custom_constants_inc.php" and located it into the main MantisBT directory.The content of this file is,
<?php
# Custom status code
define( 'disputed', 60 );
define( 'rejected', 100 );
define( 'committed', 70 );
define( 'failed', 75 );
?>
I wanted add these 4 statuses into MantisBT.
2.In "config_inc.php",I defined the new statuses in the enumeration and their color codes.
# Revised enum string with new 4 statuses
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:disputed,70:committed,75:failed,80:resolved,90:closed,100:rejected';
# Status color additions
$g_status_colors['disputed'] = '#FF00FF';
$g_status_colors['committed'] = '#4D4DFF';
$g_status_colors['failed'] = '#BC1717';
$g_status_colors['rejected'] = '#A67D3D';
3.I created "custom_strings_inc.php" and located it into the main MantisBT directory.The content of this file is,
<?php
switch( $g_active_language ) {
case 'chinese_simplified':
$s_status_enum_string = '10:新建,20:反馈,30:认可,40:已确认,50:已分派,60:有争议,70:已提交,75:验证失败,80:已解决,90:已关闭,100:已拒绝';
//用于自定义状态“有争议”的字符串
$s_disputed_bug_title = '此问题有争议';
$s_disputed_bug_button = '存在争议';
$s_email_notification_title_for_status_bug_disputed = '下列问题有争议';
//用于自定义状态“已提交”的字符串
$s_committed_bug_title = '问题的修复已提交';
$s_committed_bug_button = '已提交';
$s_email_notification_title_for_status_bug_committed = '下列问题的修复已提交';
//用于自定义状态“验证失败”的字符串
$s_failed_bug_title = '验证失败';
$s_failed_bug_button = '验证失败';
$s_email_notification_title_for_status_bug_failed = '下列问题验证失败';
//用于自定义状态“已拒绝”的字符串
$s_rejected_bug_title = '拒绝修改';
$s_rejected_bug_button = '拒绝修改';
$s_email_notification_title_for_status_bug_rejected = '下列问题被拒绝修改';
break;
default: # english
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:disputed,70:committed,75:failed,80:resolved,90:closed,100:rejected';
//Strings to the customized status "disputed"
$s_disputed_bug_title = 'Disputation Exists';
$s_disputed_bug_button = 'Disputation Exists';
$s_email_notification_title_for_status_bug_disputed = 'The following issue is DISPUTED.';
//Strings to the customized status "committed"
$s_committed_bug_title = 'Code to fix this issue has been committed';
$s_committed_bug_button = 'Be Committed';
$s_email_notification_title_for_status_bug_committed = 'Code to fix the following issue has been COMMITTED.';
//Strings to the customized status “failed”
$s_failed_bug_title = 'Failed in the verification';
$s_failed_bug_button = 'Failed';
$s_email_notification_title_for_status_bug_failed = 'The following issue has been failed in the verification.';
//Strings to the customized status “rejected”
$s_rejected_bug_title = 'Reject to fix';
$s_rejected_bug_button = 'Reject to fix';
$s_email_notification_title_for_status_bug_rejected = 'The following issue has been rejected to fix.';
break;
}
?>
4.I navigated to "Manage"-"Manage Configuration"-"Workflow Transitions" and did some settings,as follows, 5.Then I navigated to "Manage"-"Manage Configuration"-"E-mail Notifications" and did some settings,as follows, In the above picture,CMO is customized by me.
Now I met a problem.If I set the status of an issue to disputed,committed and failed,corresponding users can't receive any e-mail.If I set the status of an issue to rejected,user can get an e-mail,but the title isn't $s_email_notification_title_for_status_bug_rejected but $s_email_notification_title_for_status_bug_closed.
Could you help me to point my errors?Thank you very much!
I did these under MantisBT V1.2.14 and XAMPP win32-1.7.4.