Trying to validate Time spent attribute on task at a particular state
![](http://jazz.net/_images/myphoto/010a5d3b53cb7d38abdb65c5b7ae73d9.jpg)
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?