It's all about the answers!

Ask a question

[closed] Returning date depending on work item status

Nitin Kaushik (1118) | asked Oct 03 '17, 9:13 a.m.
edited Apr 17 '18, 7:39 a.m. by Ralph Schoon (60.5k33643)


i have a requirement to set date attribute to current date as soon as the work item reaches a certain state - lets say "Ready for QA". I am able to perform up till this level but the limitation is the value of date attribute will keep on changing as soon as there is modification in some other attributes of work item. How can i restrict the Java script to only run once when the state is being achieved not afterwards.
I have seen conditions getWorkflowAction() but i have not seen a single working example. Can I return a workflow action from a condition and store in a temporary attribute and use it my main java script ?
Can I call the condition from Calculated Values  ?

The question has been closed for the following reason: "Duplicate Question" by dnong Oct 03 '17, 9:25 p.m.