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

IFileSystemWorkItemManager.createLink() failed

Hi Any one has any ideas?

            

IFileSystemWorkItemManager manager = (IFileSystemWorkItemManager)teamRepository.getClientLibrary(IFileSystemWorkItemManager.class);

manager.createLink(handlesWorkSpace.get(0), changeset1, new IWorkItemHandle[]{handleWorkitem}, monitor);


manager.createLink() failed for:
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)

1 vote



One answer

Permanent link
Ssolved it myself.

The SDK version and the RTC version are different, when the version are the same, the code can create link between a change set and a work item.

0 votes

Comments

hi,when I associate the workItem with changeset, is there any requirement on the state of the workItem, such as "new","start working " or "resolved", the type of the workItem I used is defect. super thx

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: Apr 30 '10, 12:25 a.m.

Question was seen: 6,429 times

Last updated: Aug 22 '12, 9:48 p.m.

Confirmation Cancel Confirm