Status restrictions based on Resolution

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
evicente
Posts: 5
Joined: 13 Mar 2007, 05:28
Location: Philippines

Status restrictions based on Resolution

Post 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
Last edited by evicente on 13 Mar 2007, 07:38, edited 1 time in total.
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post 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.
evicente
Posts: 5
Joined: 13 Mar 2007, 05:28
Location: Philippines

Post 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.
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post 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.
evicente
Posts: 5
Joined: 13 Mar 2007, 05:28
Location: Philippines

Post by evicente »

Which variable should I use to get the current resolution of an issue?
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post 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
Post Reply