Hey guys, I am currently having issues when trying to update a fix version using the JIRA rest api and Guzzle.
The error I am getting is a 400 with the following message:
{"errorMessages":["Can not deserialize instance of com.atlassian.jira.rest.v2.issue.IssueUpdateBean out of START_ARRAY t (truncated...)
The code I am using looks like this:
$aPostData = array(
'update' => array(
'fixVersions' => array(
array(
'set' => array(
array(
'name' => $strTag
)
)
)
)
)
);
$jsonStuff = \GuzzleHttp\json_encode($aPostData);
$response = $cGuzzel->request('PUT',$strJiraAPI, ['headers' => ['Content-Type' => 'application/json'],
'auth' => [JIRA_USER, JIRA_PASS],
'json'=>[$jsonStuff]
]);
Any help would be greatly appreciated!