Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab API endpoint to find all issues that contains a specific label

Tags:

gitlab-api

I am triying to retrieve all issues in a Gitlab instance that contains a specific label. I only able to retrieve those issues that have only one label but my issues have two or three labels more.

Have anybody found a solution for this?

like image 854
Daniel Carroza Avatar asked Oct 20 '25 10:10

Daniel Carroza


1 Answers

At the top of the Issues API page, it shows various ways to list a Project's Issues, including a way to use multiple labels: GET /issues?labels=foo,bar

An issue does have to have all the labels you query to be returned, but you should be able to get all issues with a set of labels with multiple queries.

like image 103
Adam Marshall Avatar answered Oct 22 '25 04:10

Adam Marshall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!