Status custmozing (per project)

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Joselyne
Posts: 16
Joined: 14 Dec 2023, 15:59

Status custmozing (per project)

Post 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.
mrgenie
Posts: 3
Joined: 10 Feb 2017, 22:56

Re: Status custmozing (per project)

Post 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
cas
Posts: 1629
Joined: 11 Mar 2006, 16:08
Contact:

Re: Status custmozing (per project)

Post 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' ;
	}
}
atrol
Site Admin
Posts: 8385
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Status custmozing (per project)

Post 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
Please use Search before posting and read the Manual
cas
Posts: 1629
Joined: 11 Mar 2006, 16:08
Contact:

Re: Status custmozing (per project)

Post by cas »

forgot about that one, maybe it "sticks" now in my brain :D
Post Reply