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

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

问题描述

当我向 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.

因此,查看您上传的附件的最佳操作是使用带有 GET 的 API.

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.

您可以看到,删除的附件是通过发送事件由后端运行的.在您的场景中,您目前无法删除那些不需要的附件.

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 Create 中查找附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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