Page 1 of 1

Status custmozing (per project)

Posted: 12 Feb 2024, 12:52
by Joselyne
I'using mantis for a while and i would like to customize issues' status per project.
There will be more than 4 projects and each project will have its own values for tha variable $g_status_enum_string.

How can I perform this correctly.

Re: Status custmozing (per project)

Posted: 06 May 2024, 10:14
by mrgenie
good question - would love to hear the answer to this one

https://mantisbt.org/docs/master/en-US/ ... ize.status

documentation only describes how to change the global values for all projects

Re: Status custmozing (per project)

Posted: 06 May 2024, 13:36
by cas
You could do that in confic/custom_strings_inc.php.
Try coding something like:

Code: Select all

$t_cookie_name = config_get_global( 'project_cookie' );
if ( $_COOKIE[$t_cookie_name] ){
	$t_project_id = $_COOKIE[$t_cookie_name];
	if ($t_project_id === '11'){
		$g_project_status_enum_string = '10:status10,30:status30,50:stable,70:obsolete' ;
	}
}

Re: Status custmozing (per project)

Posted: 06 May 2024, 15:46
by atrol
@cas this is about $g_status_enum_string, not $g_project_status_enum_string

Independent from that, this can also be done via database configuration
viewtopic.php?p=72226#p72226

Re: Status custmozing (per project)

Posted: 06 May 2024, 16:14
by cas
forgot about that one, maybe it "sticks" now in my brain :D