-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Description
The method IssueService::getCustomFields()
appears to have been cut-and-pasted from the immediate preceding method getPriority()
. It takes the wrong arguments, hits the wrong endpoint, and returns the wrong data. It looks like it should be hitting the field
endpoint instead:
--- a/src/Issue/IssueService.php
+++ b/src/Issue/IssueService.php
@@ -831,7 +831,7 @@ class IssueService extends \JiraRestApi\JiraClient
*/
public function getCustomFields(int $priorityId): Priority
{
- $ret = $this->exec("priority/$priorityId", null);
+ $ret = $this->exec('field');
$this->log->info('Result='.$ret);
There is likely also a change that needs to be made to the subsequent json_mapper
call, but I am not entirely sure what that should look like.
chimok
Metadata
Metadata
Assignees
Labels
No labels