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

Work Item Time Spent and Correction Attribute Values

The Work Item contains the Time Spent and Correction attributes. How can these attribute values be programatically extracted
I Could not find a IWorkItem. that can be used along with IWorkItemClient.findAttribute to get attribute and then its value.

0 votes



2 answers

Permanent link
I have the same question. We would like to extract the value of "correction", so far we get only "Time estimate" even if correction is set with a value. My understanding is that these fields are somehow tied together. Any help on this is appreciated.


I have found a way, hope it's safe...

public static long getCorrectedEstimate(IWorkItem theWorkItem) {

long retval = theWorkItem.getDuration();
IItem item = theWorkItem.getFullState();
if (item instanceof WorkItemImpl) {
WorkItemImpl wii = (WorkItemImpl) item;
long corrected = wii.getCorrectedEstimate(); //or wii.getTimeSpent();
if (corrected >= 0)
retval = corrected;
}
return retval;
}

1 vote


Permanent link
I have the same question. We would like to extract the value of "correction", so far we get only "Time estimate" even if correction is set with a value. My understanding is that these fields are somehow tied together. Any help on this is appreciated.

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

Question asked: Mar 27 '09, 11:51 a.m.

Question was seen: 7,194 times

Last updated: Mar 27 '09, 11:51 a.m.

Confirmation Cancel Confirm