我正在使用新的YouTrack REST API,并且要创建带有附件的问题。
此页面很好地解释了创建新问题的方法: https://www.jetbrains.com/help/youtrack/incloud/api-issues.html#post-issues 但我在创建文件或将其附加到已创建的问题时,没有发现有关如何将文件附加到该问题的任何信息。
有人可以帮我吗?
非常感谢
答案 0 :(得分:0)
我从未使用过YouTrack,但是fields
可以包含attachments
(Iterable<IssueAttachment>
):
"IssueAttachment" : {
"author" : "User",
"base64Content" : "String",
"charset" : "String",
"comment" : "BaseIssueComment",
"created" : "Long",
"draft" : "Boolean",
"extension" : "String",
"issue" : "Issue",
"metaData" : "String",
"mimeType" : "String",
"name" : "String",
"removed" : "Boolean",
"size" : "Long",
"thumbnailURL" : "String",
"updated" : "Long",
"url" : "String",
"visibility" : "Visibility",
"id" : "String"
}