It's all about the answers!

Ask a question

How to get Modified Date attribute of a work Item


Kruttika Pendharkar (21174) | asked Dec 01 '11, 2:18 a.m.
Hi,

How can we get Modified Date of any workitem with respect to state change (From New to In- progress etc.)??
there is a predefined method to get Due Date.
How to get Modified Date?

Thanks,
Kruttika

11 answers



permanent link
VK L (8177154159) | answered May 30 '12, 6:22 a.m.
Hi Karthik,
try this code for the date part:

var ModifiedDate = dojo.date.stamp.fromISOString(workItem.getValue(com.ibm.team.workitem.api.common.WorkItemAttributes.MODIFIED));
var date= dojo.date.stamp.toISOString(ModifiedDate, {milliseconds:true, zulu:true});
console.log("Now is: " + date);

and return the date based on the if condition.

Thanks.

Your answer


Register or 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.