You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The method
IssueService::getCustomFields()
appears to have been cut-and-pasted from the immediate preceding methodgetPriority()
. It takes the wrong arguments, hits the wrong endpoint, and returns the wrong data. It looks like it should be hitting thefield
endpoint instead: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.The text was updated successfully, but these errors were encountered: