Skip to content

Commit db53809

Browse files
author
Robert-John van Doesburg
committed
Merge branch 'master' of github.com:rjvandoesburg/laravel-jira-rest-client
2 parents 75feb59 + 2f36d12 commit db53809

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

src/Requests/User/UserRequest.php

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ public function get($parameters)
2626
}
2727

2828
/**
29-
* Returns a list of users that match the search string and/or property.
29+
* Returns a list of users that match the search string and/or property and
30+
* are assignable to projects or issues.
3031
* This resource cannot be accessed anonymously.
3132
*
32-
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-users-search-get
33+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get
3334
*
3435
* @param array|\\Illuminate\\Contracts\\Support\\Arrayable $parameters
3536
*
@@ -44,5 +45,24 @@ public function search($parameters)
4445
return $this->execute('get', 'user/search', $parameters);
4546
}
4647

48+
/**
49+
* Returns a list of users that match the search string and/or property
50+
* This resource cannot be accessed anonymously.
51+
*
52+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-users-search-get
53+
*
54+
* @param array|\\Illuminate\\Contracts\\Support\\Arrayable $parameters
55+
*
56+
* @return \GuzzleHttp\Psr7\Response
57+
* @throws \Atlassian\JiraRest\Exceptions\JiraClientException
58+
* @throws \Atlassian\JiraRest\Exceptions\JiraNotFoundException
59+
* @throws \Atlassian\JiraRest\Exceptions\JiraUnauthorizedException
60+
* @throws \GuzzleHttp\Exception\GuzzleException
61+
*/
62+
public function searchAll($parameters)
63+
{
64+
return $this->execute('get', 'users/search', $parameters);
65+
}
66+
4767

48-
}
68+
}

0 commit comments

Comments
 (0)