Or Perets
Or Perets

Reputation: 409

How to export issues on Gitlab?

Is there an option to export all issues / TODOS to csv or pdf file in GitLab?

Upvotes: 18

Views: 24475

Answers (2)

miguelr
miguelr

Reputation: 1344

You may export issues to CSV by reading the issue list RSS feed.

Click on the "Subscribe to RSS feed" button in GitLab issue list to get a link.

enter image description here

Then you may programmatically export issues.

I created a small script for this purpose, my snippet: https://gitlab.com/snippets/1868740

Upvotes: 3

JosephH
JosephH

Reputation: 37495

As other users have commented, CSV export is built into paid versions of gitlab:

https://docs.gitlab.com/ee/user/project/issues/csv_export.html

However that does have issues - it emails the report to you and hence gitlab limit it to 20MB in size, and depending on the version of gitlab you're using some of the fields may not be present in the export.

Thankfully gitlab has a good API (including in the free version), so you can extract issues via the issues API instead, and once you have that data it's very simple to output it in CSV format.

I wrote a very simple perl script that does this, it's available here and should work with free & paid versions of gitlab and also on gitlab.com:

https://gitlab.com/emobix/get-all-gitlab-issues-as-csv

Upvotes: 19

Related Questions