adding custom field in view issue overview

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
smizzle
Posts: 3
Joined: 06 Nov 2009, 09:11

adding custom field in view issue overview

Post by smizzle »

Hey guys,

I'm using Mantis 1.1.8
and I want to add a custom field called "ext.ID" into the the overview of view issues.
I tried several ways, using the !Manage Configuration! in Mantis
did it like that

“view_issues_page_columns” in the “configuration option” field
Left “Type” field set to “Default”.
and added the value:

Code: Select all

array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary', 'custom_ext.ID' );
nothing happened so I tried

Code: Select all

array( selection, edit, priority, id, sponsorship_total, bugnotes_count, attachment, category, severity, status, last_updated, summary, custom_ext.ID )


I even tried to configure config_inc.php and config_defaults_inc.php and added the following line

Code: Select all

array( selection, edit, priority, id, sponsorship_total, bugnotes_count, attachment, category, severity, status, last_updated, summary, custom_ext.ID )
under $g_view_issues_page_columns in config_inc.php and also in config_default_inc.php but nothing happened!

Can someone plz help me to add this field into the view issues table?!
The custom field ist linked to the project so I don't know where the problem is.


Thx in advance
Smizzle
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: adding custom field in view issue overview

Post by atrol »

set type to complex in confuguration page for parameter view_issues_page_columns
for example enter the following value to get Id, Status, Summary and you custom field
array (0 => id,1 => status,2 => summary, 3 => custom_custom_ext.ID)
Please use Search before posting and read the Manual
smizzle
Posts: 3
Joined: 06 Nov 2009, 09:11

Re: adding custom field in view issue overview

Post by smizzle »

I'm sorry but i don't know what you want to tell me with this.
Can you please write it a little bit more detailed?
Thx
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: adding custom field in view issue overview

Post by atrol »

Hollywood for you,
have a look at
http://www.atrol.de/mantisbt/Customview.wmv
Please use Search before posting and read the Manual
smizzle
Posts: 3
Joined: 06 Nov 2009, 09:11

Re: adding custom field in view issue overview

Post by smizzle »

Thank you very much!
You made my day!
It works!
karl.reichert
Posts: 38
Joined: 02 Apr 2009, 12:22

Re: adding custom field in view issue overview

Post by karl.reichert »

This works for me, too. One more question:

Is it possible to add a column in the overview, where user can see the "depends on" and/or "blocks" relationship? Which option do I have to use for view_issues_page_columns to do this?
Is it possible to configure the filter in a way, that it will show me all open bugs, which do not depend on one or more other ones? How do I do that?

Thanks you in advance!
Best regards
Karl
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: adding custom field in view issue overview

Post by atrol »

karl.reichert wrote: Is it possible to add a column in the overview, where user can see the "depends on" and/or "blocks" relationship? Which option do I have to use for view_issues_page_columns to do this?
AFIAK this can not be done with configuration.
You would have to tweak the code.
The bug_relationship_table contains the information you need.
karl.reichert wrote: Is it possible to configure the filter in a way, that it will show me all open bugs, which do not depend on one or more other ones? How do I do that?
Filtering is not possible, see
http://www.mantisbt.org/bugs/view.php?id=7264

Maybe the attachment in following issue could be a starting point for you, I didn't check myself
http://www.mantisbt.org/bugs/view.php?id=6247
Please use Search before posting and read the Manual
Post Reply