I want add more columns to the tabular report. I am using bugzilla version 4.2.5. Can you please help with the files that i have to do modification to?
Thanks, Ramya
if the required field is not there in column list("Change Columns") we have to add the new field by editing the following files.
1)colchange.cgi
2)list/change-columns.html.tmpl
3)field-descs.none.tmpl
All the coloumns of the buglist are directly taken from the DB fields. For eg: ID of the buglist page is directly taken from the field bug_id of table bugs.
Modify the following files:
1)buglist.cgi
2)colchange.cgi
3)field-descs.none.tmpl
Added the corresponding coloumn to be displayed in the file colchange.cgi and pass the variables to the template file list/list.html.tmpl.
Defined the name that should be displayed in front end in the file field-descs.none.tmpl.
Modify the file buglist.cgi for the query that should give the
value for the corresponding field
.
There are two ways to do this.
When you display a report, you will find a link at the bottom that says "Change Columns". That's the wasiest way.
If you wan tot change the default columns the edit the following statement in /usr/local/bugzilla-4.2.5/Bugzilla/Constants.pm and add or remove default columns.
use constant DEFAULT_COLUMN_LIST => ( "product", "component", "assigned_to", "bug_status", "resolution", "short_desc", "changeddate" );
EDIT: Just realized that this question is two years old. I hope that it helps someone else who stumbles on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With