Work item attribute calculation script getting triggered even when dependent field has not changed
![]()
In the property dialog of a custom work item attribute, I can specify dependencies on other attributes so that when those attribute values change, the associated calculation script for this attribute will be triggered by the system (at least that's what the articles claim).
In my case, my dependency is to another calculated value, and my script is getting triggered every time I save the work item, even though the dependent attribute value has not changed. Does this dependency association only work with user-updated attributes? The motivation for what I'm doing is to work around the problem that RTC scripts cannot determine whether a state change has occurred. Therefore, I have created a hidden attribute to hold previous state, and I only want calculated attribute to fire when this previous state attribute changes (it also has a calculation script to update it from the new state). Hope this make sense. Any tips would be greatly appreciated! |
Accepted answer
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.