How to download an attachment through OSLC in RTC
Hi,
I have a WI and i have attached some files attached to it. I need to get OSLC link for that attachment and if i click on it. It should directly start downloading an attachment Regards, Chandan |
2 answers
Just do a simple GET of the OSLC 2.0 representation of the WI, and you should see something like this.
Where "subject" is the WI itself, "object" is the OSLC link to the attachment, and "title" is the name of the attachment.
But I'm curious, when you said "click", did you mean working in a browser or a custom built application? If it's a browser, I can't see why you need to link since the RTC Web GUI allows you to download the attachment. If it's a custom built application, then the application has to handle this.
Comments
Chandan M B
commented Apr 24 '15, 1:30 a.m.
Hi Donald,
|
Hi,
good noon,
I have a custom requirement to implement the new functionality.
Step 1: Developer will create defect work item in RTC.
Step 2: He will attach the text file to the work item.
Step 3: I need to write a script to download the attachment from work item & copy to specific directory [Custom requirement ]
Step 4: I'll point the script into the build definition
Can you please guide me how to do the step 3 ?
Thank you
Lakshman
|
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.