How to save attachments of workitem to disk
Hi!
I have the following code:
...and 2 questions: 1. Why do I have to use a working copy of the workitem although I already have a reference to the workitem in my iteration? 2. How can I save the attachments to disk? Thanks in advance! Marcel. |
One answer
1. Why do I have to use a working copy of the workitem although I You don't necessarily have to use a working copy, you could also use IWorkItemReferences resolveWorkItemReferences(IWorkItemHandle workItem, IProgressMonitor monitor) To get the work item references. 2. How can I save the attachments to disk? IAttachment attachment=...; IContentManager cm= repository.contentManager(); cm.retrieveContent(attachment.getContent(), outputStream); -- Regards, Patrick Jazz Work Item Team |
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.