在Azure DevOps REST创建中查找附件 [英] Find Attachments in Azure DevOps REST Create

查看:44
本文介绍了在Azure DevOps REST创建中查找附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向Azure DevOps REST服务提交附件(创建)时,是否可以在那里看到所有附件的位置?还是我最好的做法就是发送GET给我清单?

When I submit an Attachment to the Azure DevOps REST service (create), is there a place I can go to visualise all of the attachments in there? Or is my best course of action to just send a GET which will give me the list?

然后我的问题变成了……我无法删除不需要的附件.

My problem then becomes...that there is no way for me to delete unwanted attachments.

推荐答案

我可以去可视化所有附件的地方吗那里?还是我最好的做法是只发送一个GET给我名单吗?

Is there a place I can go to visualise all of the attachments in there? Or is my best course of action to just send a GET which will give me the list?

恐怕是的,查看这些附件的最佳方法是发送 GET .

I'm afraid, yes, the best course of action to view these attachments is send GET.

实际上,使用api将附件上传到工作项后,所有附件均由后端管理.并且不分配任何与工作项相关的信息.这导致您无法从UI查看它们.

In fact, after you upload the attachments to work item with api, all of them are managed by backend. And does not assign any relevant to work item. This leads you could not view them from UI.

因此,查看上传的附件的最佳方法是将API与 GET 结合使用.

So, the best action to see attachments you uploaded, is using API with GET.

此外,我们还没有扩展并提供直接的 API / SDK 来实现附件删除.

Also, we haven't expand and provide direct API/SDK to achieve attachment delete.

您也可以按f12键,然后尝试使用UI从一个工作项上载和删除附件.

You can also press f12, then try with uploading and deleting attachments from one workitem with UI.

您可以看到,已删除的附件是通过发送 event 通过后端运行的.在您的情况下,直到现在您都无法删除那些不需要的附件.

You can see, the attachments deleted are ran by backend via sending event. In your scenario, you can not remove those unwanted attachments until now.

但是您不是第一个发现此功能的人.请参阅以下建议:无法使用VSTS API 从工作项中删除/删除附件.您可以在此处投票和评论,以提高其优先级.我们的产品团队会定期对其进行审核,并考虑将其纳入路线图.

But you are not the first one who is finding this feature. See this suggestion: Unable to delete/remove attachment from work item by using VSTS api. You can vote and comment there, to raise its priority. Our product team would review it regularly and consider to take them into roadmap.

这篇关于在Azure DevOps REST创建中查找附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆