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

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

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

0 votes



One answer

Permanent link
 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

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

Question asked: Mar 26 '13, 3:32 a.m.

Question was seen: 6,390 times

Last updated: Mar 26 '13, 4:37 a.m.

Confirmation Cancel Confirm