It's all about the answers!

Ask a question

IFileSystemWorkItemManager.createLink() failed


Hou Liang Zheng (3653) | asked Apr 30 '10, 12:25 a.m.
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)

One answer



permanent link
Hou Liang Zheng (3653) | answered May 05 '10, 1:03 a.m.
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.

Comments
Michael Wang commented Aug 22 '12, 9:48 p.m.

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 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.