阅读API我没有看到任何方法可以做到这一点?
答案 0 :(得分:1)
是的,它需要一个自定义的SOAP插件。不太难,只是讨厌方法不存在。
〜马特
答案 1 :(得分:1)
SOAP不支持此功能,但您可以通过HTTP执行此操作,例如: (C#)
using (System.Net.WebClient client = new System.Net.WebClient())
{
string url = "http://jira-server/secure/DeleteAttachment.jspa?id=" +
issue.id + "&deleteAttachmentId=" + attachment_id;
client.Credentials = System.Net.CredentialCache.DefaultCredentials;
string response = client.DownloadString(url);
// do whatever validation/reporting with the response...
}
您可以从网络浏览器查看网址 - 必须是删除确认页面,而不是初始删除按钮的链接。