public function addAttachments($issueIdOrKey, $filePathArray)
{
$results = $this->upload($this->uri . "/{$issueIdOrKey}/attachments", $filePathArray);
$this->log->addInfo('addAttachments result=' . var_export($results, true));
$resArr = array();
foreach ($results as $ret) {
array_push($resArr, $this->json_mapper->mapArray(json_decode($ret), new \ArrayObject(), '\\JiraRestApi\\Issue\\Attachment'));
}
return $resArr;
}