Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When exporting a kanban we should export the kanban's main field #6046

Open
FelixMalfait opened this issue Jun 26, 2024 · 1 comment
Open
Labels
T type: bug Something isn't working

Comments

@FelixMalfait
Copy link
Member

FelixMalfait commented Jun 26, 2024

When we do a CSV export we only export visible fields on the current (debatable choice, maybe we would eventually ask for a preference/confirmation?).

When you export from a kanban view, the field that was used to build the kanban columns is not considered as part of the export. This is not desirable as this is usually the most important field. Right now the trick is to come back to a list view and export the data from there.

Steps to reproduce:

  • Go to opportunities Kanban
  • Click on Options > Export
  • You'll that "stage" field isn't in the export
@FelixMalfait FelixMalfait added type: bug Something isn't working T labels Jun 26, 2024
@FelixMalfait FelixMalfait changed the title When exporting a kanban we should export the kanban's When exporting a kanban we should export the kanban's main field Jun 26, 2024
Copy link

greptile-apps bot commented Jun 26, 2024

To include the kanban field in the CSV export, follow these steps:

  1. Locate the Kanban Field Metadata: Ensure you have access to the kanban field metadata. This is likely defined in a configuration file or within the kanban view component.

  2. Modify Export Logic: Update the export logic to include the kanban field. This logic is likely found in the file responsible for handling CSV exports.

  3. Update Export Function: In the export function, ensure the kanban field is added to the list of fields to be exported. This may involve modifying the function that gathers the fields for export.

  4. Example Code:

// Assuming the export function is in `export.js`
function exportToCSV(data, fields) {
  // Add kanban field to fields if not already included
  if (!fields.includes('kanbanField')) {
    fields.push('kanbanField');
  }
  // Proceed with export logic
  // ...
}
  1. Verify Changes: Ensure the kanban field is correctly included in the exported CSV by testing the export functionality from the kanban view.

References

Edit Issue Bot Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T type: bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant