getting the previous value of the attribute using javascript in RTC
I'm trying to write a validation customization in RTC, which would compare the previous value and new value of the attribute.
Accepted answer
It is not possible to access the previous value of an attribute in JavaScript attribute configuration. What you are trying should be implemented as a work item save advisor. See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ as an example for an advisor. In the Java API you can access the old and the new state.
"I have tried using the additional attribute with calculated value customization to store previous value, but it still does not work as expected in some of the cases for validation to be successful."
Comments
Thank you Ralph !
I don't know if you can get it working with the hack you use. I would discourage trying. See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ as an example for an advisor. In the Java API you can access the old and the new state. The download from https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ should have the code.