Closed AlexHowansky closed 7 months ago
Hi @AlexHowansky sorry for to late reply. I've released a new version and you can call this function like below.
$iss = new IssueService();
$paramArray = [
'startAt' => 1,
'maxResults' => 50,
'search' => null,
'projectIds' => [1, 2, 3],
'screenIds' => null,
'types' => null,
'sortOrder' => null,
'sortColumn' => null,
'lastValueUpdate' => null,
];
$customerFieldSearchResult = $iss->getCustomFields($paramArray);
// all custom fields
var_dump($customerFieldSearchResult->values);
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.