View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003864 | mantisbt | custom fields | public | 2004-05-20 01:23 | 2011-12-23 06:16 |
Reporter | karath | Assigned To | grangeway | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0003864: Provide facility to report Custom Fields | ||||
Description | 1 - add the list of Custom Fields to print_all_bug_options_page.php | ||||
Additional Information | Requirements issues to be left to the developers to decide on. 1 - Should the list of Custom Fields be 2 - Restrictions on which users can view which Custom Fields. 3 - Inevitably, if this feature is implemented, there will be requests to filter and sort on custom fields. If I could get the facility to report Custom Fields to Excel, I would be happy to do the sorting and filtering there. | ||||
Tags | No tags attached. | ||||
Attached Files | csv_api.php.diff (547 bytes)
80c80,93 < --- > > function csv_get_custom_columns() { > # first get the custom columns for this project > $t_project_id = helper_get_current_project(); > > $t_custom_columns = array(); > $t_related_custom_field_ids = custom_field_get_linked_ids( $t_project_id ); > foreach( $t_related_custom_field_ids as $t_id ) { > $t_def = custom_field_get_definition( $t_id ); > $t_custom_columns[$t_id] = $t_def['name']; > //echo custom_field_get_value( $t_id, $v_id ); > } > return $t_custom_columns; > } csv_export.php.diff (347 bytes)
47c47,48 < --- > $t_custom_columns = csv_get_custom_columns(); > 53c54,57 < --- > foreach ($t_custom_columns as $c_column => $c_title ) { > $t_titles[] = $c_title; > } > 80c84,86 < --- > foreach ( $t_custom_columns as $cust_key => $cust_title ) { > $t_values[] = custom_field_get_value( $cust_key, $row['id'] ); > } | ||||
I agree that exporting custom fields using the reports is a key feature. Without it custom fields are much less useful. I am using custom fields to track things like 'Client Name' and 'Time spent' against support issues. But without being able to export these fields, it hardly makes it worth using them. You can't get the data out without manually viewing each issue one at a time. |
|
According to the roadmap for 19.0 http://www.mantisbt.org/roadmap.php the ability to filter on custom fields is done (point 3 in Additional Information). I too am in need of the ability to export custom fields, and would prefer option b. (list all custom fields for all selected projects); however beggers can't be choosers and option c. is acceptible. Although option a. is noted as simplest to implement, I think it is also the least flexible of the 3 (although one could argue that it's relatively simple to delete columns from the export). edited on: 08-17-04 14:37 |
|
It got to a point where I absolutely needed to export some custom fields with the CSV, so I spent a couple hours at it and got a very basic implementation. It only works if you have a single project selected, and it exports ALL the custom fields associated with that project. I attached two diff files, but it's the first time I've done a diff, so please let me know if they don't work for some reason. |
|
This is the missing feature my users complain about. Is it a likely inclusion in the next version? |
|
I am in the same boat here. We have several custom fields that we consider important enough that they should be included in both reporting, and view_bugs pages. Can this be included for the 19.1 release? |
|
Tested the Diff files and it worked for me (version 18.3 on Windows) Thanks haaseg for the files =) |
|
Is the patch in 0003315 going to be incorporated into the future release of Mantis? The patch was written for an older version of Mantis, so when I tried to apply it onto v1.0.0a3, it was quite difficult, since some codes have changed since then. That issue is closed and why is Fixed in Release value set to 1.0.0a3? |
|
Is this functionnality implemented in last version (1.1.7) ? The question is always "Is there a possibility to export custom fields ?". Thansk for your comment. |
|
This functionality is available with MantisBT 1.2.x . |
|