Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST API For Attachments of a workitem

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

https://rb-ubk-clm-04.de.bosch.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[target/id=M01.7 and type/id=com.bosch.rtc.configuration.workitemtype.type.changerequest]/id|summary|target/id|type/name

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

0 votes

Comments

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



One answer

Permanent link
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 == "com.ibm.team.workitem.linktype.attachment"

0 votes

Comments

Is there any other way to get the attachments ?

I've modified my answer. Hope that helps.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Oct 15 '15, 5:27 a.m.

Question was seen: 3,352 times

Last updated: Jul 24 '19, 11:33 p.m.

Confirmation Cancel Confirm