Page 1 of 1

How to increase the number of priorities

Posted: 04 Feb 2011, 09:35
by mamathak
Hi,

I want to change the priorities to 1 - 10 which i managed to do so. But the problem is that its only displaying the top 6 priorities in the drop down list. How can i change it so that i would see all the 11 priorities in the drop down list.

Thanks in advance,
Mamatha

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 09:54
by atrol
mamathak wrote:Hi,I want to change the priorities to 1 - 10
IMO no good idea. For example you have to explain your users what is the difference between priority 6 and 7.
Are you able to do this? If no, introducing such a priority schema will not be helpful
mamathak wrote: which i managed to do so. But the problem is that its only displaying the top 6 priorities in the drop down list. How can i change it so that i would see all the 11 priorities in the drop down list.
Without telling what you really did, there is no change to help.

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 10:18
by mamathak
Hi,
Thank you for the quick reply. I have recently introduced the MANTIS to my company and they are happy with it. My manager asked me to add more priorities as he is the only one who assigns the priorities. Me being a tester we just leave the priority to none. And the BA and manager will decide the priorities later on. I am not sure why they want the priorities up to 12.
So, i have done the following steps.

To Customize priorities when reporting a new bug, in the custom_strings_inc.php file

<?php
# $s_priority_enum_string = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';

$s_priority_enum_string = '10:None,20:5,30:4,40:3,50:2,60:1';

?>

To set a default priority when reporting a new bug, in the config_inc.php file

$g_default_bug_priority = 10;

But, now when i am creating a new issue, i only see the following priorities - None,12,11,10,9,8. I think this is because the size of the drop down list is set to 6. Can i change it to 11 so that i see all the priorities in the drop down list??

Thanks,
Mamatha

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 10:26
by atrol
mamathak wrote: $s_priority_enum_string = '10:None,20:5,30:4,40:3,50:2,60:1';
If this is your configuration I would expect the 6 values: None, 5, 4, 3, 2, 1
but you wrote
mamathak wrote:i only see the following priorities - None,12,11,10,9,8.
which is quite confusing

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 10:28
by atrol
mamathak wrote:and the BA and manager will decide the priorities later on. I am not sure why they want the priorities up to 12.
Tell them that this is nonsens

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 10:29
by mamathak
So sorry,

Gave the wrong code. The code i have is
$s_priority_enum_string = '10:None,20:12,30:11,40:10,50:9,60:8,61:7,62:6,63:5,64:4,65:3';

Sorry about that.
Mamatha

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 11:04
by atrol
You did not write anything about $g_priority_enum_string
Maybe you missed that completely?
Have a look how to customize enumerations
http://docs.mantisbt.org/master/en/admi ... MIZE.ENUMS
and one example for status
http://docs.mantisbt.org/master/en/admi ... IZE.STATUS

Re: How to increase the number of priorities

Posted: 04 Feb 2011, 13:14
by mamathak
Excellent. I have changed s to g in the code and that worked.
Thank you.