Page 1 of 1

adding custom field in view issue overview

Posted: 06 Nov 2009, 09:27
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

Re: adding custom field in view issue overview

Posted: 12 Nov 2009, 13:42
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)

Re: adding custom field in view issue overview

Posted: 18 Nov 2009, 10:45
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

Re: adding custom field in view issue overview

Posted: 19 Nov 2009, 09:11
by atrol
Hollywood for you,
have a look at
http://www.atrol.de/mantisbt/Customview.wmv

Re: adding custom field in view issue overview

Posted: 19 Nov 2009, 12:30
by smizzle
Thank you very much!
You made my day!
It works!

Re: adding custom field in view issue overview

Posted: 08 Dec 2009, 12:47
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

Re: adding custom field in view issue overview

Posted: 08 Dec 2009, 16:29
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