From b76d8c20d3c392b648b86e43efb4d003444162e7 Mon Sep 17 00:00:00 2001 From: Alexander Obuhovich Date: Fri, 3 Jun 2016 23:16:34 +0300 Subject: [PATCH] The "Api::getRoles" method was doing non-existing REST API call --- src/Jira/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jira/Api.php b/src/Jira/Api.php index 81cd652..ee592d3 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -240,7 +240,7 @@ public function getProject($project_key) */ public function getRoles($project_key) { - return $this->api(self::REQUEST_GET, sprintf('/rest/api/2/project/%s/roles', $project_key), array(), true); + return $this->api(self::REQUEST_GET, sprintf('/rest/api/2/project/%s/role', $project_key), array(), true); } /**