Skip to content

Instantly share code, notes, and snippets.

@zbettenbuk
Last active March 22, 2022 18:28
Show Gist options
  • Save zbettenbuk/dc414036f4840641e7feb44ed271701f to your computer and use it in GitHub Desktop.
Save zbettenbuk/dc414036f4840641e7feb44ed271701f to your computer and use it in GitHub Desktop.
# This script exports all issues from all repos of a github organization into CSV format without headers
# Handy when you want to migrate your issues to some other task tracking systems
#
# You need to install and configure gh (https://cli.github.com/)
# Replace ORG_NAME with your org name
#
# Feel free to fine tune with additional filters or fields
gh repo list ORG_NAME --json name | jq -c '.[] | .name' | xargs -I % gh issue list --repo ORG_NAME/% --json title,body --limit 1000 | jq -r '.[] | [ .title, .body ] | @csv' > issues.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment