How to recalculate Script Based Calculated Values for all WI after changing the script
After uploading a new script for a Script Based Calculated Value, I can see that the change only takes effects when I open a Work Item and save it again.
Is there anyway to forced RTC to recalculate this attribute for all Work Items? |
3 answers
no.. these scripts are only run on workitem saves
|
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. Comments
sam detweiler
commented May 03 '13, 9:54 a.m.
right.. YOU wrote a process to 'save' all the affected workitems, to cause the scripts to run.
|
Ralph Schoon (63.5k●3●36●46)
| answered Jun 27 '13, 8:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
|
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.