newbie need help on Mantis

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
bryanloh
Posts: 3
Joined: 14 Dec 2012, 04:45

newbie need help on Mantis

Post by bryanloh »

Hi expert,
I'm new with Mantis and scripting. I need some help and advise.

- How to customise the default value in Severity & priority?
- Also how to update the defect workflow in Mantis, any example code that I can reference?

Mantis version: 1.2.12
Thanks in advance.

Bryan
Attachments
workflow.png
workflow.png (82.57 KiB) Viewed 3351 times
regards,
Bryan
Testing is an art
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: newbie need help on Mantis

Post by atrol »

Use page Manage > Manage Configuration > Workflow Transitions to configure your workflows

Add the following lines to file config_inc.php and adjust to your needs.

Code: Select all

	$g_default_bug_priority = NORMAL;
	$g_default_bug_severity = MINOR;
use the following constants for it

Code: Select all

# priority
define( 'NONE', 10 );
define( 'LOW', 20 );
define( 'NORMAL', 30 );
define( 'HIGH', 40 );
define( 'URGENT', 50 );
define( 'IMMEDIATE', 60 );

# severity
define( 'FEATURE', 10 );
define( 'TRIVIAL', 20 );
define( 'TEXT', 30 );
define( 'TWEAK', 40 );
define( 'MINOR', 50 );
define( 'MAJOR', 60 );
define( 'CRASH', 70 );
define( 'BLOCK', 80 );
Please use Search before posting and read the Manual
bryanloh
Posts: 3
Joined: 14 Dec 2012, 04:45

Re: newbie need help on Mantis

Post by bryanloh »

Dear Atrol,
Thanks for your input :wink:


Bryan
regards,
Bryan
Testing is an art
bryanloh
Posts: 3
Joined: 14 Dec 2012, 04:45

Re: newbie need help on Mantis

Post by bryanloh »

atrol wrote:Use page Manage > Manage Configuration > Workflow Transitions to configure your workflows
I take a look of customization today but I can't find a way to modify the value in the Workflow Transitions page .

Also I'm pretty new in scripting where to get the config_inc.php?

Or do you know anyone that doing freelance of customize Mantis? if yes, please PM to me.

Thanks
Bryan
regards,
Bryan
Testing is an art
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: newbie need help on Mantis

Post by atrol »

bryanloh wrote: Also I'm pretty new in scripting where to get the config_inc.php?
You will find the file where you installed MantisBT.
bryanloh wrote: Or do you know anyone that doing freelance of customize Mantis?
Not really,
maybe Victor Boctor will respond http://www.mantisbt.org/consulting.php
Please use Search before posting and read the Manual
Post Reply