It's all about the answers!

Ask a question

RTC 6.0.3 M4 Can't save custom attribute

su jianrong (635) | asked Aug 24 '16, 7:19 a.m.
edited Aug 24 '16, 7:26 a.m.
Java code:
IWorkItemClient wiService = (IWorkItemClient)repository.getClientLibrary(IWorkItemClient.class);
    IAttribute attr = wiService.createNewAttribute(projectArea, identifier, type, IAttribute.FULL_TEXT_KIND_DEFAULT,  null /*IProgressMonitor*/);
    attr = wiService.saveAttribute(attr, null /*IProgressMonitor*/);

Exception :
ERROR java.lang.IllegalArgumentException: Item id and State id must not be null
    at sun.reflect.GeneratedMethodAccessor2195.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at .....

Be the first one to answer this question!

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.