It's all about the answers!

Ask a question

Unreolved Types IWorkItemWorkingCopyManager


Guowei Jim Hu (1.0k710353) | asked Mar 04 '09, 4:23 p.m.
I added the following code to the example JazzPlainJava code to try to do a work item updating instead of creating new one but can't compile the code as the following types can't resolved:
IWorkItemWorkingCopyManager, IComments, IComment.

I am new to Java, so where and how can I find out what lib/jar is missing?


IWorkItemWorkingCopyManager workingCopyManager = workItemClient.getWorkItemWorkingCopyManager();
IWorkItemHandle handle= workingCopyManager.connect(workItemType, null);
WorkItemWorkingCopy workingCopy = workingCopyManager.getWorkingCopy(handle);

// modify work item
IWorkItem myworkItem= workingCopy.getWorkItem();

IComments comments= myworkItem.getComments();
IComment comment= comments.createComment(teamRepository.loggedInContributor(), XMLString.createFromPlainText(description));
comments.append(comment);
workingCopy.save(null);

One answer



permanent link
Guowei Jim Hu (1.0k710353) | answered Mar 06 '09, 4:01 p.m.
Got this solved by adding the follwoing improts to my code:
import com.ibm.team.workitem.client.IWorkItemWorkingCopyManager;
import com.ibm.team.workitem.common.model.IComments;
import com.ibm.team.workitem.common.model.IComment;

Your answer


Register or to post your answer.