Available assignees
Получает список пользователей, которые могут быть назначены для данного рабочего пакета.
Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequiredExample:
Идентификатор рабочего пакета
1Responses
200
OK
application/hal+json
ResponseobjectExample:
{"_links":{"self":{"href":"/api/v3/projects/42/available_assignees"}},"total":2,"count":2,"_type":"Collection","_embedded":{"elements":[{"_type":"User","_links":{"self":{"href":"/api/v3/users/1","title":"John Sheppard - j.sheppard"},"lock":{"href":"/api/v3/users/1/lock","title":"Set lock on j.sheppard","method":"POST"},"delete":{"href":"/api/v3/users/1","title":"Delete j.sheppard","method":"DELETE"}},"id":1,"login":"j.sheppard","firstName":"John","lastName":"Sheppard","email":"shep@mail.com","avatar":"https://example.org/users/1/avatar","status":"active","createdAt":"2014-05-21T08:51:20.977Z","updatedAt":"2014-05-21T08:51:20.977Z"},{"_type":"User","_links":{"self":{"href":"/api/v3/users/2","title":"Jim Sheppard - j.sheppard2"},"lock":{"href":"/api/v3/users/2/lock","title":"Set lock on j.sheppard2","method":"POST"},"delete":{"href":"/api/v3/users/2","title":"Delete j.sheppard2","method":"DELETE"}},"id":2,"login":"j.sheppard2","firstName":"Jim","lastName":"Sheppard","email":"shep@mail.net","avatar":"https://example.org/users/1/avatar","status":"active","createdAt":"2014-05-21T08:51:20.977Z","updatedAt":"2014-05-21T08:51:20.977Z"}]}}403
Returned if the client does not have sufficient permissions.
Required permission: edit work packages
Note that you will only receive this error, if you are at least allowed to see the corresponding work package.
application/hal+json
404
Returned if the work package does not exist or the client does not have sufficient permissions to see it.
Required permission: view work packages
application/hal+json
get
/api/v3/work_packages/{id}/available_assigneesGET /op/api/v3/work_packages/{id}/available_assignees HTTP/1.1
Host: example.u-meteor.ru
Authorization: Basic username:password
Accept: */*
{
"_embedded": {
"elements": [
{
"_links": {
"delete": {
"href": "/api/v3/users/1",
"method": "DELETE",
"title": "Delete j.sheppard"
},
"lock": {
"href": "/api/v3/users/1/lock",
"method": "POST",
"title": "Set lock on j.sheppard"
},
"self": {
"href": "/api/v3/users/1",
"title": "John Sheppard - j.sheppard"
}
},
"_type": "User",
"avatar": "https://example.org/users/1/avatar",
"createdAt": "2014-05-21T08:51:20.396Z",
"email": "shep@mail.com",
"firstName": "John",
"id": 1,
"lastName": "Sheppard",
"login": "j.sheppard",
"status": "active",
"updatedAt": "2014-05-21T08:51:20.396Z"
},
{
"_links": {
"delete": {
"href": "/api/v3/users/2",
"method": "DELETE",
"title": "Delete j.sheppard2"
},
"lock": {
"href": "/api/v3/users/2/lock",
"method": "POST",
"title": "Set lock on j.sheppard2"
},
"self": {
"href": "/api/v3/users/2",
"title": "Jim Sheppard - j.sheppard2"
}
},
"_type": "User",
"avatar": "https://example.org/users/1/avatar",
"createdAt": "2014-05-21T08:51:20.396Z",
"email": "shep@mail.net",
"firstName": "Jim",
"id": 2,
"lastName": "Sheppard",
"login": "j.sheppard2",
"status": "active",
"updatedAt": "2014-05-21T08:51:20.396Z"
}
]
},
"_links": {
"self": {
"href": "/api/v3/work_packages/42/available_assignees"
}
},
"_type": "Collection",
"count": 2,
"total": 2
}