How to Add Attachment in RTC Workitem(say defect) using OSLC4Net

Dec 1, 2015 at 5:55 AM
Hi,
From last few days I am working on RTC Integration. I am able to add record using OSLC4Net sample application. But I don't see any example for add attachment file on Any workitem.

I attachment is supported? Please share the code /link for that.

Thanks in Advance
Deb
Coordinator
Dec 1, 2015 at 1:57 PM
Unfortunately, RTC does not currently have a public REST API for attachment management. There is an enhancement request open for this, but with no activity:

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=262443

One hint I can give if you want to pursue this on your own is to use your browser's network tools and watch what happens when you add an attachment to a work item and save the work item. It is a two step process - create the attachment, then link it to the work item. It is not something that can be modeled easily with OSLC4NET. It might also be worth posting to the forum on jazz.net to see if anyone else has tackled this.

Regards,
Mike

Dec 2, 2015 at 5:27 AM
Thanks Mike,

I have done this with Rest call .Thanks for your suggestion and support.


Regards,
Debasish