Field order in CSV export

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
acanicio
Posts: 1
Joined: 27 Jun 2017, 08:56

Field order in CSV export

Post by acanicio »

Dear forum,

I have Mantis BT version 1.3.5. (in french )

I'm trying to understand how to define the order in which field columns can be set in the csv export files.

I've tried setting the order in the "Configuration Report", and then separately in the "Manage Columns" menu.
The custom fields seem to obey to some mystic command and always appear in the same order, whatever I choose...
Here is what I have in the configuration report

Code: Select all

array (
  0 => 'id',
  1 => 'project_id',
  2 => 'reporter_id',
  3 => 'handler_id',
  4 => 'priority',
  5 => 'severity',
  6 => 'reproducibility',
  7 => 'version',
  8 => 'category_id',
  9 => 'date_submitted',
  10 => 'view_state',
  11 => 'last_updated',
  12 => 'summary',
  13 => 'status',
  14 => 'resolution',
  15 => 'fixed_in_version',
  16 => 'custom_complexité',
  17 => 'custom_id_iris',
  18 => 'custom_Lien Ticket',
  19 => 'custom_Catégorie appelant',
  20 => 'custom_Logiciel Santé',
  21 => 'custom_Nature de problème',
  22 => 'custom_Prise en main à distance',
)
Here is the CSV Columns configuration in the "Manage columns" Option :

Code: Select all

id, 
project_id, 
reporter_id, 
handler_id, 
priority, 
severity, 
reproducibility, 
version, 
category_id, 
date_submitted, 
view_state, 
last_updated, 
summary, 
status, 
resolution, 
fixed_in_version, 
custom_complexité, 
custom_id_iris, 
custom_Lien Ticket, 
custom_Catégorie appelant, 
custom_Logiciel Santé, 
custom_Nature de problème, 
custom_Prise en main à distance

And here is the order in which the fields appear in my exports :

Code: Select all

id
project_id
reporter_id
handler_id
priority
severity
reproducibility
version
category_id
date_submitted
view_state
last_updated
summary
status
resolution
fixed_in_version
ID_iris
Emetteur Santé
Catégorie appelant
Logiciel Santé
Nature de problème
Prise en main à distance
Complexité
And a field "custom_Lien Ticket" does not even appear.
I've tried recreating the custom field 5 or 6 times, and it just does not want to appear in the export, even if it appears correctly in the views.

Is there a correct procedure to do it ?
Or is it a bug ?

Thank you for your remarks or replies.
Best regards
Axel
Post Reply