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

Trying to validate Time spent attribute on task at a particular state

 I am trying to get value of time spent attribute and estimate attribute in dojo validation script using following code.

var timespent = workItem.getValue("com.ibm.team.workitem.attribute.timespent");
var estimate = workItem.getValue("com.ibm.team.workitem.attribute.duration");

The above variable are giving me null result. How can i get values of these attributes?

0 votes



3 answers

Permanent link
According to the document https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript, "Duration" is not supported by javascript.

0 votes


Permanent link
 Please look up the attribute Ids in the web UI. The attribute Ids you show don't work for attribute customization. I think the return type is a long. 

0 votes


Permanent link
This worked

var timespent = workItem.getValue("timeSpent");
var estimate = workItem.getValue("duration");

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
× 152

Question asked: Jul 25 '16, 7:41 a.m.

Question was seen: 2,721 times

Last updated: Jul 27 '16, 4:09 a.m.

Confirmation Cancel Confirm