Adding additional columns in View Issues

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
badduck
Posts: 7
Joined: Jan 30, 2008 4:46 am

Adding additional columns in View Issues

Post by badduck » Feb 19, 2008 12:53 am

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.

vboctor
Site Admin
Posts: 1286
Joined: Feb 13, 2005 5:11 pm
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post by vboctor » Feb 19, 2008 3:26 am

Isn't the handler shown by default?

Checkout the following Wiki page:
http://www.mantisbt.org/wiki/doku.php/m ... ssues_page
Migrate your MantisBT to the MantisHub Cloud

leblancma
Posts: 37
Joined: Jan 09, 2006 10:22 am
Location: Canada
Contact:

Re: Adding additional columns in View Issues

Post by leblancma » Feb 20, 2008 12:23 pm

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 .
Regards,

Maurice

dingfelder
Posts: 100
Joined: Aug 14, 2005 5:47 pm
Location: new zealand
Contact:

Re: Adding additional columns in View Issues

Post by dingfelder » Feb 20, 2008 9:46 pm

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.

badduck
Posts: 7
Joined: Jan 30, 2008 4:46 am

Re: Adding additional columns in View Issues

Post by badduck » Feb 21, 2008 9:53 am

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.

badduck
Posts: 7
Joined: Jan 30, 2008 4:46 am

Re: Adding additional columns in View Issues

Post by badduck » Feb 22, 2008 4:46 am

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?
Attachments
handlerid1.jpg
handlerid1.jpg (201.64 KiB) Viewed 10606 times

vboctor
Site Admin
Posts: 1286
Joined: Feb 13, 2005 5:11 pm
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post by vboctor » Feb 25, 2008 11:32 pm

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
Migrate your MantisBT to the MantisHub Cloud

dingfelder
Posts: 100
Joined: Aug 14, 2005 5:47 pm
Location: new zealand
Contact:

Re: Adding additional columns in View Issues

Post by dingfelder » Feb 26, 2008 4:11 pm

when will 1.2 be released?

vboctor
Site Admin
Posts: 1286
Joined: Feb 13, 2005 5:11 pm
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post by vboctor » Feb 26, 2008 5:26 pm

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.
Migrate your MantisBT to the MantisHub Cloud

badduck
Posts: 7
Joined: Jan 30, 2008 4:46 am

Re: Adding additional columns in View Issues

Post by badduck » Feb 27, 2008 1:34 am

I think I have found the problem in Configuration Setting. Thanks.

nurikabe
Posts: 13
Joined: Jan 09, 2007 8:21 am

Re: Adding additional columns in View Issues

Post by nurikabe » Mar 17, 2008 9:48 am

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

mpa
Posts: 17
Joined: Jan 15, 2008 7:34 am

Re: Adding additional columns in View Issues

Post by mpa » May 07, 2008 6:12 am

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.

Post Reply