Accessing a file froma work item
2 answers
You can attach a file to a work item, so when you click on the attachment in the work item the file is opened. (I don't know if this is what you want. And if it is, I don't know how to do it programmatically.)
There is no way to link between a work item and a specific file that is under source control.
-- David Olsen, IBM Rational, Jazz Process Team
Comments
Yes I want to attach a file to a work item so when I click on the work item, the file opens. is not possible to do so?
When you click on a work item, the work item will be opened. There is no way to change that. You can attach a file to the work item as an attachment, but to open the file the user has to click on the attachment link in the work item.
You can attach a specific file under version control to a work item by obtaining a URL for that file from the RTC Web UI. In particular, you can get the URL of the current version of that file in a specific stream, or you can get a specific version of that file (from the "history" of that file). You would then create a "related artifact" link in the work item using that URL.