A tool to extract gitlab issues in text and CSV format
A simple tool to export gitlab issues in both text and CSV format. It uses the
handy xanzy/go-gitlab library to pull
the issues from gitlab.
Requires go 1.7+
go install github.com/tzneal/gitlab-issues
Usage of gitlab-issues:
-csv
format output as CSV
-label string
issues with any maching label will be returned, multiple labels can be separated by a comma
-milestone string
project milestone
-o string
specify filename to write output to instead of stdout
-project string
project name
-token string
gitlab token from User Settings->Account page
-url string
base URL to connect to (default "https://gitlab.com/")
gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --milestone "Release 1.0"
gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --csv -o issues.csv
gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --label Planned,Development
Where do I find the token to use for my gitlab instance?
If you click Profile -> Settings in gitlab, and look at the ‘Account’ tab, it’s listed as your ‘Private token’.