View Issue Details

IDProjectCategoryView StatusLast Update
0008582mantisbtfeaturepublic2019-02-19 15:26
Reporterrbendig Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status assignedResolutionopen 
Summary0008582: Default Category for Project / Global default Category


our company has many projects in mantis. For all those projects we must have categories, so our customers need to select the "one and only" category by hand. It would be nice to see, that, if there is only one category, the category is selected by default.

This could be a global configuration , or a "per project" configuration "[categoryname] [assign to] [set default:yes;no]".

TagsNo tags attached.


related to 0008435 closedjreese Implement Global and Inheriting Categories Structure 
has duplicate 0011921 closeddregad Autoselect category if only one exists 
has duplicate 0012711 closeddregad Re-add g_default_bug_category to make a default category per project 
has duplicate 0013568 closedatrol What Set Default Catecory FOR ALL users and projects ?? 
has duplicate 0013570 closedatrol What Set Default Catecory FOR ALL users and projects ?? Not WORk !! I NEED HELP !!! I'm angry 
has duplicate 0015349 closeddregad Auto Assign without a category? 
related to 0004102 closedvboctor Category field should be empty by default or default specified 




2007-11-15 08:18

reporter   ~0016216

This is planned for eventual inclusion as part of Bug 0008435.



2011-09-27 17:50

developer   ~0029876

See duplicate bug 0011921 for suggestions on how to address this issue



2011-11-29 03:17

reporter   ~0030355

What Set Default Catecory FOR ALL users and projects ?? Not WORk !! I NEED HELP !!! I'm angry




2011-11-29 08:15

reporter   ~0030356

This is not a solution but only a suggestion how to implement such a feature.
For now there's no way to set default category and no option named 'categoryname'.
You may use tweak in 0011921 to implement something like this.


Указанное выше - не описание, как задать категорию по умолчанию, а предложение разработчикам, как можно реализовать такую фичу.
На данный момент, такой фичи нет. Указать категорию по умолчанию нельзя никак.

Если владеете PHP - можете воспользоваться твиком в 0011921, там выбирается первая категория из имеющихся. Можете подкрутить этот твик, чтобы он искал категорию с определенным наименованием и выбирал ее.

И, да, боюсь, здесь вряд ли кто-то волнуется, angry ли вы (:



2011-11-29 11:24

reporter   ~0030358

watergad - НАШИ В ГОРОДЕ !!



2013-01-03 03:14

reporter   ~0034682

This bug is only five days younger than my own young son, who is now five and a bit. Probably a good time to apply the simple fix in 0008582 and clear it off your plate, I think!



2013-01-03 04:05

developer   ~0034683

I see no need for categories if there is just one.
If I had this use case I would set $g_allow_no_category = ON;



2013-01-03 04:22

reporter   ~0034684

atrol: I hadn't noticed that option. That certainly solves it for me. So to put it in terms that someone who comes here looking for an answer would understand:

If you are not intending to use categories at all, you can add the following line to your config_inc.php file:

$g_allow_no_category = OFF;

This will save you needing to choose the default category every time.

However, I still support the addition of the code as follows, on the "belt, braces and two condoms" theory of software development.

File: core/print_api.php
Function: print_category_option_list
Line: 693 in current version, immediately before the line "foreach( $cat_arr as $t_category_row ) {"
Add:  if (count($cat_arr) == 1) $p_category_id = $cat_arr[0]['id'];

Either way, though, I would not object if this bug were marked closed with the above explanation. I think it's quite reasonable.



2013-01-03 04:27

reporter   ~0034686

Oh bother, typo. The correct line should be:

$g_allow_no_category = ON;

Confusing language makes for confused users.



2013-01-03 07:45

developer   ~0034687

I started working on this last year, but due to other priorities and lack of time it's been left on the side since then.

You're welcome to have a look at the corresponding code on my github branch [1], but bear in mind that it's probably not feature-complete and for sure not fully tested. In any case, feedback would be appreciated.




2013-03-25 17:32

reporter   ~0035963

I'd like to confirm if the code in github will solve my problem:

We don't use categories anywhere (this field is made hidden to the users through config), but need notifications be sent to each project's main developer every time a new bug is created. We have more than 20 projects, assigned to 5 main developers.

From the admin point of view, the simplest solution seems to have a new button named "Set as Default" besides each category (in the "Categories" box in project configuration screen). Then he just uses the current steps to assign a default developer for the default category.



2018-02-21 16:59

reporter   ~0058991

I think an option to set a default category per project would be useful in a number of situations:

  • a specific proj only has only one category but other projects have multiple categories. allow_no_category option doesn't help here as you may need to move issues to other projects.
  • A project has multiple categories but one is more widely used than the rest.
  • Allows for setting a category for email reporting per project


2019-02-19 15:26

reporter   ~0061523

Another angle to this...

If you're reporting a bug from a view that is filtered to only show one category, I suggest defaulting the new issue's category to that category.

Issue History

Date Modified Username Field Change
2007-11-15 04:39 rbendig New Issue
2007-11-15 08:18 jreese Note Added: 0016216
2011-09-27 17:48 dregad Relationship added has duplicate 0011921
2011-09-27 17:50 dregad Note Added: 0029876
2011-09-27 17:58 dregad Relationship added has duplicate 0012711
2011-09-28 01:23 pixelbyte File Added: _54443821_54442020.jpg
2011-09-28 01:39 pixelbyte Tag Attached: admin
2011-09-28 01:39 pixelbyte File Added: _54442017_e0800021-earth_s_magnetosph (1).jpg
2011-09-28 02:22 atrol File Deleted: _54443821_54442020.jpg
2011-09-28 02:22 atrol File Deleted: _54442017_e0800021-earth_s_magnetosph (1).jpg
2011-09-28 02:22 atrol Tag Detached: admin
2011-10-03 10:07 dregad Assigned To => dregad
2011-10-03 10:07 dregad Status new => assigned
2011-10-03 10:08 dregad Target Version => 1.2.9
2011-10-04 03:42 dhx Relationship added related to 0004102
2011-10-04 03:59 dhx Relationship added related to 0008435
2011-11-28 07:21 atrol Relationship added has duplicate 0013568
2011-11-29 02:40 atrol Relationship added has duplicate 0013570
2011-11-29 03:17 johnsilver182 Note Added: 0030355
2011-11-29 08:15 watergad Note Added: 0030356
2011-11-29 11:24 johnsilver182 Note Added: 0030358
2012-03-04 09:23 atrol Target Version 1.2.9 => 1.2.10
2012-04-02 02:33 atrol Target Version 1.2.10 => 1.2.11
2012-06-06 23:54 jreese Target Version 1.2.11 => 1.2.12
2012-11-10 19:04 dregad Target Version 1.2.12 => 1.2.13
2013-01-03 03:14 etfb Note Added: 0034682
2013-01-03 04:05 atrol Note Added: 0034683
2013-01-03 04:22 etfb Note Added: 0034684
2013-01-03 04:27 etfb Note Added: 0034686
2013-01-03 07:45 dregad Note Added: 0034687
2013-01-07 11:08 dregad Relationship added has duplicate 0015349
2013-01-22 09:48 dregad Target Version 1.2.13 => 1.2.14
2013-01-29 09:28 dregad Target Version 1.2.14 => 1.2.15
2013-03-25 17:32 gsusin Note Added: 0035963
2013-04-12 09:57 dregad Target Version 1.2.15 => 1.2.16
2014-01-23 17:49 atrol Target Version 1.2.16 =>
2018-02-21 16:59 sandyj Note Added: 0058991
2019-02-19 15:26 ChrisG Note Added: 0061523