问题
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