Closed Ken-vdE closed 1 year ago
We are having the same issue since today.
Same issue starting from today
Same issue here.
Same. Looks like the Jira API is adding nullable properties to the response, which wasn't the case before.
Had the same issue. I've modified the JiraCloud\Issue\IssueField
class to allow null in the parent setter:
public function setParent(?Issue $parent): void
{
$this->parent = $parent;
}
This unblocked me until an official fix is available.
I also modified the setParent
method as shown below:
/**
* Set parent
*
* @param Issue|null $parent
* @return void
*/
public function setParent(?Issue $parent)
{
if (!is_null($parent)) {
$this->parent = $parent;
}
}
Issue fixed in version 5.5.1
We're experiencing this error since today:
JSON property "parent" in class "JiraRestApi\Issue\IssueField" must not be NULL
. Our code has worked stably for weeks. I think Jira cloud is returning different data since this weekend.I'm simply calling
get('SOMEKEY-123')
on anIssueService
instance.Here's the trace: /vendor/netresearch/jsonmapper/src/JsonMapper.php in JsonMapper::map at line 216
/vendor/netresearch/jsonmapper/src/JsonMapper.php in JsonMapper::map at line 300
/vendor/lesstif/php-jira-rest-client/src/Issue/IssueService.php in JiraRestApi\Issue\IssueService::get at line 51