Redmine Rest API错误“主题不能为空”

时间:2019-05-02 12:12:42

标签: php redmine-api

我正在使用kbsali redmine api创建问题,即使我通过主题,我也收到主题不能为空错误

$result=$client->issue->create([
    'project_id'  => 'projder',
    'subject'     => 'this is subject subject this is subject subject this is subject subject this is subject subject this is subject subject',
    'description' => 'this is subject subject this is subject subject this is subject subject this is subje',
    'assigned_to_id' => '45',
    'priority_id' => $_POST['inputPriority'],
    'uploads'     => array(
        array(
          'token'       => $upload->upload->token,
          'filename'    => $file,
          'description' => 'This is my file description',
          'content_type'=> 'image/png'
        ),
        array(
          'token'       => $uploadoptional->upload->token,
          'filename'    => $optionalUpload,
          'description' => 'Client Attachment',
          'content_type'=> $optionalUploadType
        )
    )
]);



)
SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [type] => array
        )

    [error] => Subject cannot be blank
)

1 个答案:

答案 0 :(得分:0)

我找到了解决方案,未通过使用我正在发送API请求以创建票证的方式来向用户授予Redmine主题字段权限。