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?