Exception: Attempting to get unset feature: Duration
Hello,I want to get the 'estimate' and 'CorrectedEstimate',but it is always throw the exception."java.lang.IllegalStateException: Attempting to get unset feature: Duration"
listAll = getAll.testTotal("testReport002"); for(int i=0;i<listAll.size();i++){ IWorkItem wiAll=(IWorkItem) listAll.get(i); System.out.println( wiAll.getDuration()); try{ IItem item2 = wiAll.getFullState(); if (item instanceof WorkItemImpl) { WorkItemImpl wii = (WorkItemImpl) item2; long corrected = wii.getCorrectedEstimate(); long corrected2 = wii.getTimeSpent(); //or wii.getTimeSpent(); thanks for help |
One answer
Actually wii is related to ROMs so, that's why you have to read about how ROM work how to upgrade it etc etc. |
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.