It's all about the answers!

Ask a question

Can we set today's date in timestamp field based on particular workflow state?


Shailendra Gupta (144) | asked Mar 26 '13, 3:32 a.m.
edited Mar 26 '13, 3:44 a.m. by Ralph Schoon (63.6k33647)
Can we set today's date in timestamp field based on particular workflow state?

One answer



permanent link
Anurag Rajput (8021723) | answered Mar 26 '13, 4:37 a.m.
 Hi Shailendra,

You can set the timestamp with the help of Script (Calculated Values)...

var currentDate= new Date();  
            if ((workItem.getValue(WorkItemAttributes.STATE)== State ID)) { 
                 return currentDate.getTime().toString(); 
            }

Hope this helps you.


Regards,
Anurag RAjput

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.