Mantis

editing the issue view page

Posted by hudson 
editing the issue view page
December 03, 2007 02:20PM
Hi, i have to customize Mantis. An a big requirement is to have a special column in the issue view page.
The standard lookout is

P ID # Category Severity Status Updated Summary

But i need

P ID # Category Severity Status follow-up Updated Summary

where can i do this?

Thanks a lot smiling smiley
Re: editing the issue view page
December 03, 2007 02:50PM
Hi,

What is "follow-up" field? A custom field?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: editing the issue view page
December 03, 2007 03:05PM
Yes that is a custom field.
Re: editing the issue view page
December 03, 2007 03:15PM
It is in the config_inc.php file (you have to add custom_follow-up):
Language: PHP
# A configuration option that identifies the columns to be shown on the View Issues page. # In Mantis 1.1, this option can be overriden using the Generic Configuration screen. # This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view". # Some of the columns specified here can be removed automatically if they conflict with other configuration. # For example, sponsorship_total will be removed if sponsorships are disabled. # To include custom field &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;xyz&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, include the column name as &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;custom_xyz&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;. # # Standard Column Names (i.e. names to choose from): # selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta, # resolution, fixed_in_version, view_state, os, os_build, platform, version, date_submitted, attachment, # category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count $g_view_issues_page_columns = ( &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;selection&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;edit&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;priority&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;id&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;sponsorship_total&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;bugnotes_count&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;attachment&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;category&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;severity&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;status&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;last_updated&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;summary&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; );

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: editing the issue view page
December 03, 2007 03:40PM
It dont works. sad smiley

In my config_inc.php i add the line

$g_view_issues_page_columns = array ( &#039;selection&#039;,&#039;id&#039;, &#039;bugnotes_count&#039;, &#039;category&#039;, &#039;severity&#039;, &#039;status&#039;, &#039;last_updated&#039;, &#039;custom_Wiedervorlage&#039;, &#039;summary&#039; );

Wiedervorlage is the custom field which i add in the project.
But the view is the same as befor sad smiley like

P ID # Category Severity Status Updated Summary

Did you have an idea?
Re: editing the issue view page
December 03, 2007 04:18PM
What is your Mantis version? Do you have $g_view_issues_page_columns defined in your config_default_inc.php?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: editing the issue view page
December 04, 2007 07:46AM
Good Morning smiling smiley

I have Mantis version 1.0.8

No i dont have the line $g_view_issues_page_columns in my config_default_inc.php

Did the entry $g_view_issues_page_columns have to define in the config_inc.php or in the config_default_inc.php ??? Or in both?
Re: editing the issue view page
December 04, 2007 08:34AM
Hi,

None in your case. Take a look here where I explain how you can add a column named version with your Mantis version.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: editing the issue view page
December 04, 2007 09:26AM
You are my Hero smiling smiley

It works. I´m very happy.

Thanks a lot.

hudson smiling smiley
Re: editing the issue view page
June 04, 2009 08:40AM
Can any one please tell me how to display this in Mantis 1.1.2 Version.
Regards.



Edited 1 time(s). Last edit at 06/04/2009 08:41AM by adilz.cool.
Re: editing the issue view page
June 04, 2009 08:47AM
What is "this"?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: editing the issue view page
June 04, 2009 12:02PM
As per our requirement we want to display a custom field in Mantis "View issue Page" but i am not able to display the custom field.
for eg: i have created a custom field called "Simple" and associated the custom field to the project, in one of the forums i saw how to display custom field in view issue page "View Thread"
When i am trying to check the issue page times i am getting the following error::

APPLICATION ERROR #401
Database query failed. Error received from database was #1054: Unknown column &#039;Simple&#039; in &#039;order clause&#039; for the query: SELECT DISTINCT mantis_bug_table.*
FROM mantis_bug_table

WHERE mantis_bug_table.id in (2, 3, 4, 5, 6)
ORDER BY sticky DESC, Simple DESC, last_updated DESC, date_submitted DESC.

(and some times this)

Some times i am getting field names but not the associated custom field value of the bug in the "view issue page".

Note::: I am using 1.1.2 Version..

Thanks,



Edited 2 time(s). Last edit at 06/04/2009 12:06PM by adilz.cool.
Re: editing the issue view page
June 04, 2009 12:31PM
Hi can any one reply me about the issue.
Re: editing the issue view page
September 02, 2009 04:24PM
Hi,
I added the function as described at the wiki.
But is it possible to set the columns at the " Configuration Report " inside the " Manage Configuration "?
This will be a bit easier.

Thanks for informations.

Regards looki

--
Mantis: 1.1.8
PHP: 5.2
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 4
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr