Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export issues on Gitlab?

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

like image 667
Or Perets Avatar asked May 01 '17 12:05

Or Perets


People also ask

Can I export issues from GitLab?

You can export issues as CSV files from GitLab, which are sent to your default notification email address as an attachment. Export Issues to CSV enables you and your team to export all the data collected from issues into a comma-separated values (CSV) file, which stores tabular data in plain text.

How do I export issues from GitLab starter?

Introduced in GitLab Starter 9.0. Issues can be exported as CSV from GitLab and are sent to your default notification email as an attachment. Export Issues to CSV enables you and your team to export all the data collected from issues into a comma-separated values (CSV) file, which stores tabular data in plain text.

Can I import a project from another version of GitLab?

Before you can import a project, you must export the data first. See Export a project and its data for how you can export a project through the UI. Imports from a newer version of GitLab are not supported. The Importing GitLab version must be greater than or equal to the Exporting GitLab version.

Is there a way to export all issues from GitHub?

With the official GitHub CLI you can easily export all issues into a CSV format. Change directory to a repository and run this command: In the European .csv files the separator is a semicolon ';', not a comma. Modify the separator as you want. It is unfortunate that github.com does not make this easier.

What can I do with a CSV file in GitLab?

Make a snapshot of issues for offline analysis or to communicate with other teams who may not be in GitLab. Create diagrams, graphs, and charts from the CSV data. Present the data in any other format for auditing or sharing reasons. Import the issues elsewhere to a system outside of GitLab.


2 Answers

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

like image 51
JosephH Avatar answered Sep 23 '22 07:09

JosephH


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

like image 36
miguelr Avatar answered Sep 22 '22 07:09

miguelr