Adding additional columns in View Issues

Post about your customizations to share with others.

Moderators: Developer, Contributor

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

Adding additional columns in View Issues

Post 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.
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post by vboctor »

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: 09 Jan 2006, 15:22
Location: Canada
Contact:

Re: Adding additional columns in View Issues

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

Maurice
dingfelder
Posts: 100
Joined: 14 Aug 2005, 22:47
Location: new zealand
Contact:

Re: Adding additional columns in View Issues

Post 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.
badduck
Posts: 7
Joined: 30 Jan 2008, 09:46

Re: Adding additional columns in View Issues

Post 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.
badduck
Posts: 7
Joined: 30 Jan 2008, 09:46

Re: Adding additional columns in View Issues

Post 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?
Attachments
handlerid1.jpg
handlerid1.jpg (201.64 KiB) Viewed 16301 times
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post 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
Migrate your MantisBT to the MantisHub Cloud
dingfelder
Posts: 100
Joined: 14 Aug 2005, 22:47
Location: new zealand
Contact:

Re: Adding additional columns in View Issues

Post by dingfelder »

when will 1.2 be released?
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Adding additional columns in View Issues

Post 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.
Migrate your MantisBT to the MantisHub Cloud
badduck
Posts: 7
Joined: 30 Jan 2008, 09:46

Re: Adding additional columns in View Issues

Post by badduck »

I think I have found the problem in Configuration Setting. Thanks.
nurikabe
Posts: 13
Joined: 09 Jan 2007, 13:21

Re: Adding additional columns in View Issues

Post 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
mpa
Posts: 27
Joined: 15 Jan 2008, 12:34

Re: Adding additional columns in View Issues

Post 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.
Post Reply