Page 1 of 1

Status restrictions based on Resolution

Posted: 13 Mar 2007, 06:57
by evicente
Is it possible to restrict the possible choices in the status drop down based on what the resolution is?

example, you can't Close an issue if the resolution is Open.

Edit: Mantis Version: 1.0.6

Posted: 13 Mar 2007, 07:08
by ed
Have a look at $g_status_enum_workflow in config_defaults_inc.php and then add what you would like to config_inc.php.

Posted: 13 Mar 2007, 07:30
by evicente
ed wrote:Have a look at $g_status_enum_workflow in config_defaults_inc.php and then add what you would like to config_inc.php.
Is it possible to put in the value of a Resolution in the "[ ]" part of the "$g_status_enum_workflow[NEW_]" code?

I've read the code but it seems that the code only determines what possible statuses you can go to from the current status the issue is set to.

I want the Resolution to determine what status can be set on an issue.

Posted: 13 Mar 2007, 08:34
by ed
Opps, sorry. Misread your question.

I don't know how (or if) you can do what you ask. I don't think so, as similar types of questions have been asked a lot lately and there has not been an answer posted.

Posted: 16 Mar 2007, 06:21
by evicente
Which variable should I use to get the current resolution of an issue?

Posted: 16 Mar 2007, 06:50
by ed
you may be able to do what you are after with a custom function:

http://www.mantisbt.org/manual/manual.c ... ctions.php

the resolution of a bug is stored in mantis_bug_table