How to recalculate Script Based Calculated Values for all WI after changing the script
3 answers
What I did so far to recalculate the values is:
1) make the Custom Attribute dependent on "tags". Edit Custom Attribute / Dependencies
2) Make a query that returns all Work items and display column tags
3) Select all in the search view
4) Right click on the tags column and select "Change tags"
5) Add tag "recalculate_values"
That will modify all work items with a new tag and trigger the recalculation of the calculated value.
But still is a non optimal solution.
1) make the Custom Attribute dependent on "tags". Edit Custom Attribute / Dependencies
2) Make a query that returns all Work items and display column tags
3) Select all in the search view
4) Right click on the tags column and select "Change tags"
5) Add tag "recalculate_values"
That will modify all work items with a new tag and trigger the recalculation of the calculated value.
But still is a non optimal solution.
It might be an idea to use this code and run it from a commandline: http://rsjazz.wordpress.com/2012/11/19/using-an-expression-to-synchronize-attributes-for-work-items-of-a-specific-type/ I am not sure it it would be sufficient to just run synchronize. Maybe you have also to modify a value to trigger the calculation.