It's all about the answers!

Ask a question

how to get the attachment URL by use iAttachment


jose s (1122) | asked Jul 01 '13, 12:35 p.m.
 HI,
I want to get the attachment URL by using the iAttachment object.So,please help me to get the URL.

2 answers



permanent link
sam detweiler (12.5k6195201) | answered Jul 01 '13, 1:16 p.m.
attachments do not have a URL.  they have an ID, which is relative to each workitem.

Comments
jose s commented Jul 01 '13, 1:31 p.m.
normally you can go to RTC and right click the any attachment and say "Copy URL".

 meaning, each attachment is having unique URL .I want to get the URL in 

programmatically.


permanent link
sam detweiler (12.5k6195201) | answered Jul 01 '13, 1:36 p.m.
edited Jul 01 '13, 1:38 p.m.
when I go to a workitem  attachment in the web URL, the link under the name is displayed as

<code>
https://server:port/ccm/service/com.ibm.team.workitem.service.internal.rest.IAttachmentRestService/repo/csid/Attachment/about.jsp?itemId=_V7F-sOJ0EeK2sLR3oTQZPA
</code>

I do not see copy URL. (except as provided by the browser)
this attachment filename is 'about.jsp'

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.