Page 1 of 1

Adding additional columns in View Issues

Posted: 19 Feb 2008, 05:53
by badduck
I am wonder how can I add the handler column in the View Issues page?
Which php file should I modify?
Thanks for your help in advance.

Re: Adding additional columns in View Issues

Posted: 19 Feb 2008, 08:26
by vboctor
Isn't the handler shown by default?

Checkout the following Wiki page:
http://www.mantisbt.org/wiki/doku.php/m ... ssues_page

Re: Adding additional columns in View Issues

Posted: 20 Feb 2008, 17:23
by leblancma
Victor is more-or-less correct.

The handler is shown in parentheses in the Status column. If you wish to show a separate column with the same information, just add
handler_id to $g_view_issues_page_columns in your config_inc.php file.

See the appropriate section in config_defaults_inc.php.

Showing the handler this way seems to be redundant, unless there is a simple way to customize the status column display, possibly by using custom_functions_inc.php. In my installation custom_functions_inc.php has been rendered unnecessary with the introduction of variable $g_view_issues_page_columns .

Re: Adding additional columns in View Issues

Posted: 21 Feb 2008, 02:46
by dingfelder
I used the admin tool to add a new list of columns (and it worked).

I have 2 comments:

1. project_id is not very useful, it adds the db id for the project... the wiki says it is the project name so this needs correcting. Ideally, it would actually show the project name not the id.

2. once you create the array such as:
array (
0 => 'selection',
1 => 'edit',
2 => 'priority',
3 => 'id',
4 => 'bugnotes_count',
5 => 'attachment',
6 => 'category',
7 => 'severity',
8 => 'status',
9 => 'last_updated',
10 => 'summary',
11 => 'duplicate_id',
12 => 'project_id',
13 => 'eta',
14 => 'version',
15 => 'target_version',
16 => 'fixed_in_version',
)

it is not possible to edit it. you have to delete it and recreate, which is not nice.

so, changing this to edit an existing one would help.

Re: Adding additional columns in View Issues

Posted: 21 Feb 2008, 14:53
by badduck
thanks guys for your comments. i just the handler to be in a separate column all together.
just gets anonying when it suddenly disappears from view when i need it the most.

Re: Adding additional columns in View Issues

Posted: 22 Feb 2008, 09:46
by badduck
I have a strange problem after adding the handler_id in the View Issue page. Somehow, the Assigned To field is blank when filtering by the project level (the project has subprojects). When I filter by the sub project, then the Assigned To field is populated. What is wrong? I have other projects with subproject which does not have this problem. Dunno what is so special about this project. Any ideas?

Re: Adding additional columns in View Issues

Posted: 26 Feb 2008, 04:32
by vboctor
Not sure about the sub-projects issue. It would be interesting to know why it works in some scenarios but not others. However, it may be related to the access level required to view the "handler" of issues.

There is now a GUI to allow customizing columns in View Issues, Print Issues, CSV Export and Excel Export. This was recently checked in the development branch and hence will be included in Mantis 1.2.0.
http://www.mantisbt.org/bugs/view.php?id=8923

Re: Adding additional columns in View Issues

Posted: 26 Feb 2008, 21:11
by dingfelder
when will 1.2 be released?

Re: Adding additional columns in View Issues

Posted: 26 Feb 2008, 22:26
by vboctor
I knew this was coming! If you are asking about 1.2.0 gold, it take some time since we haven't released any alpha or rc releases. I would suggest you create a forum thread with this question and I can keep it updated with projections.

Re: Adding additional columns in View Issues

Posted: 27 Feb 2008, 06:34
by badduck
I think I have found the problem in Configuration Setting. Thanks.

Re: Adding additional columns in View Issues

Posted: 17 Mar 2008, 14:48
by nurikabe
Hi All,

We're looking to do the same thing: Create a separate column for handler_id so that we can sort on that.

I'm not quite following this thread though. How did you remove the parenthetical handler_id from status column?

Thanks

Re: Adding additional columns in View Issues

Posted: 07 May 2008, 11:12
by mpa
Adding last comment as column

I would like to see the last comment that is given in a issue in the list.
This can be a extra column or a extra line direct underneeth every issue.

Does anyone if this is possibel and how this can be done?

Thanks in advance.