Hi.
Its no problem to create new issues using the rest api and curl.
But now i would like to attach an image file. Is that possible with "rest/api/2/issue/" or do i have to use the "/rest/api/2/attachment/" statement?
atm my array looks like that:
'fields' => array(
'project' => array(
'key' => $key,
),
'summary' => $summaryText,
'description' => $text,
"issuetype" => array(
"self" => "xxxx",
"id" => "3",
"description" => "xxxx",
"iconUrl" => "xxxx",
"name" => "xxx",
"subtask" => false
),
'attachment' => array(
'content' =>'xxx'
),
),
);
there i get this error:
{"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}
so the attachment field is not supported or what does this error mean?