How can I prevent that a ticket can be resolved as 'open'?

Post about your customizations to share with others.

Moderators: Contributor, Developer

How can I prevent that a ticket can be resolved as 'open'?

Postby covfefe » Sep 07, 2017 10:29 am

Hello folks! :D

I have a problem concerning status options and resolutions.
In my system, there are the status option resolved and closed (I think both are dafault in Mantis).
What annoys me is that a ticket can be set either to be resolved or closed with the 'Open' resolution. :cry:

I want to force users that they pick any other resolution than 'Open' when they select one of the two statuses.
Is that possible somehow? :?:

I found the config option 'bug_resolved_status_threshold' in the manual and thought probably this a good start, but I have no idea with which parameters I have to set it.
I know I have to place it under "Manage"->"Manage Configuration"->"Configuration Report", where I have also put my customized status_enum_workflow but it is unclear which value to put in bug_resolved_status_threshold.
Is this option suited for that what I need? http://www.mantisbt.org/docs/master-1.2 ... guide.html

Best regards and thanks in advance :wink:
covfefe
 
Posts: 5
Joined: Jun 30, 2017 11:46 am

Re: How can I prevent that a ticket can be resolved as 'open

Postby rkarmann » Dec 14, 2017 8:19 am

Hi,

This configuration option is set with a constant (take a look at constant_inc.php).

If you want the 'resolved' resolution to be set in only one case, you should write :

in our config_inc.php file:
$bug_resolved_status_threshold = THE_CONSTANT_YOU_CHOOSED;

Here is a snippet of code that demonstrates the different statuses :

Code: Select all
# This is used in add user to project
# status
define( 'NEW_', 10 );

# NEW seems to be a reserved keyword
define( 'FEEDBACK', 20 );
define( 'ACKNOWLEDGED', 30 );
define( 'CONFIRMED', 40 );
define( 'ASSIGNED', 50 );
define( 'RESOLVED', 80 );
define( 'CLOSED', 90 );
rkarmann
 
Posts: 24
Joined: Nov 24, 2017 5:00 am
Location: Lille, France


Return to Customizations

Who is online

Users browsing this forum: No registered users and 6 guests