Add status filter argument to work items CSV export
What does this MR do and why?
Expose status argument in WorkItemsCsvExportInput to enable filtering work items by status during CSV export.
The status argument uses Types::WorkItems::Widgets::StatusFilterInputType, which supports filtering by both status ID and
name for flexible work item status filtering.
Notes
- Currently, we don’t support the
statusfield in exported or imported CSV files. This will be addressed in the future via #537379. - Since the
work_items_project_issues_listfeature flag, which enabled work items CSV export, was enabled by default in %18.4 (!204139 (merged)) and removed in %18.5 (!205003 (merged)), we'll need to backport this MR to earlier versions to prevent the error reported here.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Navigate to a work item list at the project or group level.
- Filter work items by a specific status, for example 'To do'.
- Select 'Export as CSV' from the three-dots menu.
- Before the change, an error was raised, preventing users from exporting work items. After exposing the status argument, the CSV export request succeeds.
- Navigate to
http://127.0.0.1:3000/rails/letter_opener/and confirm that the CSV file only contains work items filtered by status.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Agnes Slota

