Page MenuHomePhorge

Projects: allow to export (just like Maniphest Tasks)
Open, WishlistPublic

Description

It would be really nice if, from a Projects search page, it would be possible to export data as CSV, etc.

For example, from this page:

https://we.phorge.it/project/query/active/

Note that this feature is already available to Tasks, using Use ResultsExport Data:

https://we.phorge.it/maniphest/query/subscribed/

Phorge Phabricator Export Data.png (178×313 px, 11 KB)

Event Timeline

valerio.bozzolan triaged this task as Wishlist priority.Jun 5 2023, 07:42
valerio.bozzolan created this task.
valerio.bozzolan created this object in space S1 Public.

You can already "export" to json from the conduit. Maybe "teach conduit search methods to produce csv" would be a better solution.
Alternatively, an external script to convert the resulting json to a csv.

Yep that is my current workaround. Premising I pretty damn like the current export engine in Maniphest. It should not be that impossible to replicate to Projects as well.

In any case, it should be generic - on "search results page", although probably requires each SearchEngine to define the available fields in order to actually support this feature.

In T15448#9857, @avivey wrote:

In any case, it should be generic - on "search results page", although probably requires each SearchEngine to define the available fields in order to actually support this feature.

Turns out it's already generic.

To implement, update PhabricatorProjectSearchEngine, implement newExportFields() and newExportData(array $objects) - see example in ManiphestTaskSearchEngine. That should be enough to add the "Export" feature to the search results.