php - Redmine Rest 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
)
解决方案
我找到了解决方案,redmine 主题字段权限没有通过使用我发送 API 请求来创建票证授予用户。
推荐阅读
- autodesk-forge - 无法获取 Forge 清单 - Autodesk Forge 查看器
- android - :kotlin.UninitializedPropertyAccessException:lateinit 属性管理器尚未初始化
- c# - 使用 Directory.GetFiles 作为条件来检查某些文件是否在目录中,c# 脚本
- python - 如何删除 NameError: name 'Dataset' is not defined
- java - 我正在尝试将我的应用程序从 Spring 转移到 Spring Boot,但我遇到了一些问题。特别是以下异常
- android - Android Intune SDK 是否支持 MSAL?
- java - 使用递归算法进行二分搜索
- jenkins - 将 minion 列表传递给 Jenkins 管道,错误:workflowScript:15:美元符号后的非法字符串正文字符;
- python - 检查双端队列为空时的时间复杂度
- ms-access - 什么是刷新MS Access中表中所有记录的好方法