How do you post a new workitem to RTC with an attachment using OSLC API?
I've been submitting work items by feeding the parameters to a perl script and using LWP::UserAgent to post them in rdf+xml formatting. I've recently ran into an issue where we need to be able to include attachments when we create new workitems but I haven't found a way to accomplish this. Is there currently any way to post a new workitem with an attachment using the API?
2 answers
Hi there, it's been a while since you asked this question! Did you find a clue in how do it?
Comments
- Please do not post questions as answers to old posts. Create your own question.
- As far as I can tell, there is no public API for uploading attachments. I have followed countless discussions here and I am unable to find a conclusive answer. I know others have found ways to do it, likely by recording the UI and then using the internal API. You have to upload the attachment forst and then you can add the link to the work item.
Here what I was able to find:
- https://jazz.net/forum/questions/150849/how-to-upload-an-attachment-to-a-work-item-via-rest-api/152223
- https://jazz.net/forum/questions/150849/how-to-upload-an-attachment-to-a-work-item-via-rest-api/167806
- https://jazz.net/forum/questions/150849/how-to-upload-an-attachment-to-a-work-item-via-rest-api
As far as I can tell, the APIs are internal.