It's all about the answers!

Ask a question

Require to apply the custom advisor only on the change to the particular field

Pavithra Kasturirangan (42956056) | asked Aug 07 '12, 5:16 a.m.

I have written a custom advisor that will set the date based on the state change,

For example, In a defect, when the status is 'In Progress' and when an enumeration value is Coding, my script should set the new value to the date field that i have in the workitem

When the date field is null, then it means that it is the first time the field should be updated and i pass the value of date to it. When the date field is already populated, I'm passing the date value to update it. The problem that i find here is that, whenever something else changes in the workitem, it satisfies the condition of the state value matching and the enumeration matching and updates the date. But i want the date to be updated only when there is a change to the enumeration value.

Can you help me on how to identify the change to the specific enumeration value to use the javascript script to apply the calculated value ?

Be the first one to answer this question!

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.