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

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

1 vote



One answer

Permanent link

 Actually wii is related to ROMs so, that's why you have to read about how ROM work how to upgrade it etc etc.

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,940

Question asked: Aug 19 '10, 4:12 a.m.

Question was seen: 3,684 times

Last updated: Nov 14 '19, 10:45 a.m.

Confirmation Cancel Confirm