It's all about the answers!

Ask a question

REST API For Attachments of a workitem

pradeep kumar (1136) | asked Oct 15 '15, 5:27 a.m.
Hello Team

I want to know how to get the Workitems Attachment using Rest API.

Currently i am able to access the information about id,summary and type of a workitem using below link[target/id=M01.7 and type/]/id|summary|target/id|type/name

But I am unable to find out the attachments of a workitem
Please help

ignacio garcia commented Jul 24 '19, 4:39 p.m. | edited Jul 24 '19, 8:32 p.m.

Hi Pradeep, I hope you're well. Did you solve it? 

One answer

permanent link
Subramanya Prasad Pilar (4.6k16) | answered Oct 15 '15, 5:31 a.m.
edited Jul 24 '19, 11:31 p.m.
You can get RTC WorkItem attachments via the RTC Reportable REST API.
workitem/workItem/auditableLinks/targetRef/referencedItem/href will give the link to the attachment; you need to filter / use a condition workitem/workItem/auditableLinks/name == ""

pradeep kumar commented Oct 15 '15, 5:49 a.m.

Is there any other way to get the attachments ?

Subramanya Prasad Pilar commented Jul 24 '19, 11:33 p.m.

I've modified my answer. Hope that helps.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.