Project

General

Profile

How to download selected issue to csv

Added by Dawei Ou about 5 years ago

Greetings!

I'm trying to add a button to export an unique issue to csv format , at the current version allows export all issue but i just need the selected one.
I would like make a data map in the button for outgoing csv file.

Any idea?


Replies (2)

RE: How to download selected issue to csv - Added by Tatsuya Saito about 5 years ago

On Redmine 4.0.0, you can create issues query with using issue ID.
After creating it, you can get csv of the issue after accessing http://your.redmine/issues.csv?parameters_for_query.

For example, I could get a csv of issue #13 when I access following address from browser.
http://127.0.0.1:3000/issues.csv?utf8=%E2%9C%93&set_filter=1&f[]=issue_id&op[issue_id]==&v[issue_id][]=13

RE: How to download selected issue to csv - Added by Dawei Ou about 5 years ago

Thanks Tatsuya ! but i cant update my Redmine version Dx

Using view customize plugin i associated copy button /issues/[0-9]+/copy to
https://code-maven.com/create-and-download-csv-with-javascript
and it works , but the problem is i need xslx format to do cells with format , i installed libraries like this https://github.com/SheetJS/js-xlsx
but in view customize the script tag

<script lang="javascript" src="dist/xlsx.full.min.js"></script>
it doesn't work
You know the way to make it work? or any other method to do it using other plugins?

Thanks!

    (1-2/2)