API: add filter to search for assigned issues
Similar to the Dashboard, make it possible to search for issues that are assigned to a given user.
This should work for:
/issues
/groups/:id/issues
/projects/:id/issues
The proposed filters are (including the existing ):
Attribute | Type | Required | Description |
---|---|---|---|
state |
string | no | Return all merge requests or just those that are opened or closed
|
labels |
string | no | Comma-separated list of label names, merge requests must have all labels to be returned |
milestones |
string | no | Comma-separated list of milestone titles |
iids |
Array[integer] | no | Return only the merge requests having the given iid
|
assignee_id |
integer | no | Return only merge requests assigned to the user with this id
|
author_id |
integer | no | Return only merge requests authored by the user with this id
|
order_by |
string | no | Return requests ordered by created_at or updated_at fields. Default is created_at
|
sort |
string | no | Return requests sorted in asc or desc order. Default is desc
|
But this is a problem for the top-level /issues
endpoint, because it always filters on issues authored by the current_user
. Changing this behavior would be a breaking change, which we cannot do until GitLab 10.0. A workaround could be to support author_id=0
(or -1
?) to get the issues authored by anyone.