Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unreolved Types IWorkItemWorkingCopyManager

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);

0 votes



One answer

Permanent link
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;

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Mar 04 '09, 4:23 p.m.

Question was seen: 5,943 times

Last updated: Mar 04 '09, 4:23 p.m.

Confirmation Cancel Confirm