Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all Gitlab Issues

Tags:

gitlab

In the gitlab documentation, it specifies that the issues endpoint is only for the logged in user. The only other alternative is to iterate over all the projects and get them this way. We have an external scheduling engine, but we first need to be able to get every issue that has been created.

How do I either:

  • Access an endpoint which will get me all issues for all projects, preferably sorted by date order
  • Create an endpoint if one doesn't exist
like image 717
Cetra Avatar asked Oct 30 '22 04:10

Cetra


1 Answers

In both cases (list project issues and list all projects), you need to use a GitLab private token from an admin account (see for instance "Gitlab API: How to generate the private token")

You need such an account to use the existing endpoints for listing all the resources you need.

But after that, you will still need two steps, one for getting the projects, one for the issues per projects, as there is no existing endpoint natively getting all issues per project in one call.

like image 97
VonC Avatar answered Nov 29 '22 22:11

VonC