Find Attachments in Azure DevOps REST Create

主宰稳场 提交于 2020-12-15 05:58:19

问题


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.


回答1:


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?

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

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.

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


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

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.

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.



来源:https://stackoverflow.com/questions/60159311/find-attachments-in-azure-devops-rest-create

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!