How do I extract issues from a repo? #179986
Replies: 3 comments 6 replies
-
|
Hey there! You can export issues from a GitHub Enterprise repo using the same API endpoint as normal, just include your Enterprise domain and the org name:
Enterprise always uses /api/v3/. If you want a CSV, you can convert the JSON afterward:
|
Beta Was this translation helpful? Give feedback.
-
|
Since you’re using GitHub Enterprise Cloud, the 404 happens because you’re trying to access a private repo without a token. You’ll need a personal access token (PAT) with repo scope (or read:org + read:repo for read-only) and, if your org uses SAML SSO, you must authorize the token under Settings → Applications. Once that’s set, the endpoint https://api.github.com/repos///issues?state=open&per_page=100 should work. You can then convert the JSON to CSV using jq |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Rod-at-DOH, I saw that you are trying to export all open issues from your organization repository into a CSV file. Here are some simple steps that might help:
Just replace <YOUR_TOKEN>, <ORG_NAME>, and <REPO_NAME> with your own values.
This will give you a clean CSV with issue title, state, labels, creation date, and more.
If you'd like, I can also prepare a full script that handles pagination and automatically generates the CSV. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Feature Area
Issues
Body
I've been asked to extract the open issues in a repo, which is in one of our GitHub Enterprise's Organizations. I've searched for a way of doing this and came across this page. However, when I clicked on that link it just took me back to that same page.
I need a way of exporting the open issues in this repo into a .CSV file. I also came cross this suggestion:
I tried going to just the GitHub API's URL, but I'm now sure how to specify that for our organization. The above command line is for an individual's repo, not an enterprise repo. I'd appreciate help, please.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions