I tried to customize our Mantis to met my needs and succeeded in most parts. I renamed and added new statuses, priorities, hid uneccessary fields (severity, reproductibility...) and so on... but I dont know how to display "last note" of issue as new column on view_all_bug_page.php. How do I do that? I tried with custom columns, but i don't think this is the way to solve my problem.
Please give me ideas how to display "last note" of issue on view_all_bug_page.php.
I resolve this issue by myself. The solution includes modifing core Mantis files (filter_api.php) and some other minor changes in order to work with SQL Server 2008. Brief description:
I had to change file "filter_api.php":
- function "filter_get_bug_rows", where I added SQL CASE statement to retrieve last note or description for selected issue as "last_note". The idea is that i only need to add new columns with desired information in original SQL statement, to print these information in view_issues_page_columns.php...
- deleted "DISTINCT" word from all SQL queries in "filter_api.php"
Created in root directory "mantis" file "custom_strings.php", where I added entry:
$s_last_note = 'Last Note';
Changed file "columns_api.php" where i added new function "print_column_last_updated" where I remove functionality to sort issues for this column. This must be done in order to prevent sort error when user clicked on "Last note" link.
Then I go to Manage -> Manage Configuration where I modified configuration options for view_issues_page_columns. I added "last_note" to view this column on "view_bug_page.php".
I can provide more details how I did this, if anyone has interest.
I resolve this issue by myself. The solution includes modifing core Mantis files (filter_api.php) and some other minor changes in order to work with SQL Server 2008. Brief description:
I had to change file "filter_api.php":
- function "filter_get_bug_rows", where I added SQL CASE statement to retrieve last note or description for selected issue as "last_note". The idea is that i only need to add new columns with desired information in original SQL statement, to print these information in view_issues_page_columns.php...
- deleted "DISTINCT" word from all SQL queries in "filter_api.php"
Created in root directory "mantis" file "custom_strings.php", where I added entry:
$s_last_note = 'Last Note';
Changed file "columns_api.php" where i added new function "print_column_last_updated" where I remove functionality to sort issues for this column. This must be done in order to prevent sort error when user clicked on "Last note" link.
Then I go to Manage -> Manage Configuration where I modified configuration options for view_issues_page_columns. I added "last_note" to view this column on "view_bug_page.php".
I can provide more details how I did this, if anyone has interest.
matejp wrote:I resolve this issue by myself. The solution includes modifing core Mantis files (filter_api.php) and some other minor changes in order to work with SQL Server 2008. Brief description:
I had to change file "filter_api.php":
- function "filter_get_bug_rows", where I added SQL CASE statement to retrieve last note or description for selected issue as "last_note". The idea is that i only need to add new columns with desired information in original SQL statement, to print these information in view_issues_page_columns.php...
- deleted "DISTINCT" word from all SQL queries in "filter_api.php"
Created in root directory "mantis" file "custom_strings.php", where I added entry:
$s_last_note = 'Last Note';
Changed file "columns_api.php" where i added new function "print_column_last_updated" where I remove functionality to sort issues for this column. This must be done in order to prevent sort error when user clicked on "Last note" link.
Then I go to Manage -> Manage Configuration where I modified configuration options for view_issues_page_columns. I added "last_note" to view this column on "view_bug_page.php".
I can provide more details how I did this, if anyone has interest.
Hi, matejp.
could you please attach your file filter_api.php ?
matejp wrote:I resolve this issue by myself. The solution includes modifing core Mantis files (filter_api.php) and some other minor changes in order to work with SQL Server 2008. Brief description:
I had to change file "filter_api.php":
- function "filter_get_bug_rows", where I added SQL CASE statement to retrieve last note or description for selected issue as "last_note". The idea is that i only need to add new columns with desired information in original SQL statement, to print these information in view_issues_page_columns.php...
- deleted "DISTINCT" word from all SQL queries in "filter_api.php"
Created in root directory "mantis" file "custom_strings.php", where I added entry:
$s_last_note = 'Last Note';
Changed file "columns_api.php" where i added new function "print_column_last_updated" where I remove functionality to sort issues for this column. This must be done in order to prevent sort error when user clicked on "Last note" link.
Then I go to Manage -> Manage Configuration where I modified configuration options for view_issues_page_columns. I added "last_note" to view this column on "view_bug_page.php".
I can provide more details how I did this, if anyone has interest.