Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjubianchi <julien.bianchi@pmsipilot.com>2014-08-14 18:17:19 +0400
committerjubianchi <contact@jubianchi.fr>2014-09-04 16:41:31 +0400
commit0ac4a933ffae00adc4b7ab58af9bef15ed8c412b (patch)
treeed2d378510d3c8f2af85dabc89ed10c7f1c6c91c /doc
parentd5c569118cf3a928b3f7e77a017a0df39c2cb1f1 (diff)
Filters issues by labels via API
Diffstat (limited to 'doc')
-rw-r--r--doc/api/issues.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/issues.md b/doc/api/issues.md
index c12d4528546..a935b146d37 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -9,11 +9,15 @@ Get all issues created by authenticated user. This function takes pagination par
GET /issues
GET /issues?state=opened
GET /issues?state=closed
+GET /issues?labels=foo
+GET /issues?labels=foo,bar
+GET /issues?labels=foo,bar&state=opened
```
Parameters:
- `state` (optional) - Return `all` issues or just those that are `opened` or `closed`
+- `labels` (optional) - Comma-separated list of label names
```json
[
@@ -88,12 +92,16 @@ to return the list of project issues.
GET /projects/:id/issues
GET /projects/:id/issues?state=opened
GET /projects/:id/issues?state=closed
+GET /projects/:id/issues?labels=foo
+GET /projects/:id/issues?labels=foo,bar
+GET /projects/:id/issues?labels=foo,bar&state=opened
```
Parameters:
- `id` (required) - The ID of a project
- `state` (optional) - Return `all` issues or just those that are `opened` or `closed`
+- `labels` (optional) - Comma-separated list of label names
## Single issue