I have a field called Unit Tester that contains the name of the developer that tested the code.
1. I've modified config_inc.php to add a new view box:
Code: Select all
$g_my_view_boxes = array (
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '5',
'monitored' => '6',
'feedback' => '0',
'verify' => '0',
'ready_test' => '7',
);
Code: Select all
$s_my_view_title_ready_test = "Waiting For Me To Unit Test";
Code: Select all
$c_filter['ready_test'] = array(
'custom_Unit Tester' => Array('0' => $t_current_user_id),
'show_category' => Array ( '0' => META_FILTER_ANY ),
'show_severity' => Array ( '0' => META_FILTER_ANY ),
'show_status' => Array ( '0' => META_FILTER_ANY ),
'highlight_changed' => $t_default_show_changed,
'reporter_id' => Array ( '0' => META_FILTER_ANY ),
'handler_id' => Array ( '0' => META_FILTER_ANY ),
'show_resolution' => Array ( '0' => META_FILTER_ANY ),
'show_build' => Array ( '0' => META_FILTER_ANY ),
'show_version' => Array ( '0' => META_FILTER_ANY ),
'hide_status' => Array ( '0' => $t_hide_status_default ),
'user_monitor' => Array ( '0' => META_FILTER_ANY ),
);
$url_link_parameters['ready_test'] = 'custom_Unit Tester=' . $t_current_user_id;
I saw note 225 in http://manual.mantisbt.org/manual.confi ... ttings.php and attempted:
Code: Select all
$c_filter['ready_test'] = array(
'custom_fields' => Array('custom_Unit Tester' => Array( '0' => $t_current_user_id)),
'show_category' => Array ( '0' => META_FILTER_ANY ),
'show_severity' => Array ( '0' => META_FILTER_ANY ),
'show_status' => Array ( '0' => META_FILTER_ANY ),
'highlight_changed' => $t_default_show_changed,
'reporter_id' => Array ( '0' => META_FILTER_ANY ),
'handler_id' => Array ( '0' => META_FILTER_ANY ),
'show_resolution' => Array ( '0' => META_FILTER_ANY ),
'show_build' => Array ( '0' => META_FILTER_ANY ),
'show_version' => Array ( '0' => META_FILTER_ANY ),
'hide_status' => Array ( '0' => $t_hide_status_default ),
'user_monitor' => Array ( '0' => META_FILTER_ANY ),
);
$url_link_parameters['ready_test'] = 'custom_unit tester=' . $t_current_user_id;
Has anyone done this before that can help me? Any help would be appreciated.
Thanks,
Kira (kira.fernandes@gmail.com)