Specifying workflow configuration for new custom fields

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Specifying workflow configuration for new custom fields

Post by modest »

I am using Mantis 1.1.8. I created a new custom value called "Suspended" in Status field and a new custom value called "Revisit Later" in the Resolution field. Now just like with the Default Mantis installation whenever an Issue's status is updated to "Resolved" (for example_..view.php?id=100), the value "fixed" is selected for the Resolution field (on the bug_change_status_page.php) by default.

I wanted to do something similar with my two custom fields i.e. Whenever user selects "Suspended" as the Status of the issue, the value "Revisit Later" gets selected for Resolution field (on the bug_change_status_page.php page).

How can I do that?
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Re: Specifying workflow configuration for new custom fields

Post by modest »

Anyone???
fonnnnnn
Posts: 13
Joined: 11 Mar 2011, 10:27

Re: Specifying workflow configuration for new custom fields

Post by fonnnnnn »

if you not want to use "Resloved" and "fixed" again ?--> try to instead the name "Resolved" with "Suspended" and "fixed" with "Revisit Later"

in file ./lang/string_english.txt with the
$s_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to reproduce,50:not fixable,60:duplicate,70:no change required,80:suspended,90:won\'t fix';
and $s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
fonnnnnn
Posts: 13
Joined: 11 Mar 2011, 10:27

Re: Specifying workflow configuration for new custom fields

Post by fonnnnnn »

another solution , copy config in file "config_defaults_inc.php" these line.

/**
* Bug is resolved, ready to be closed or reopened. In some custom installations a bug
* may be considered as resolved when it is moved to a custom (FIXED or TESTED) status.
* @global int $g_bug_resolved_status_threshold
*/
$g_bug_resolved_status_threshold = RESOLVED;

/**
* Threshold resolution which denotes that a bug has been resolved and
* successfully fixed by developers. Resolutions above this threshold
* and below $g_bug_resolution_not_fixed_threshold are considered to be
* resolved successfully.
* @global int $g_bug_resolution_fixed_threshold
*/
$g_bug_resolution_fixed_threshold = FIXED;

and place in your config_inc.php and change want do you want.

good luck ^^
Post Reply