Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

1

0 votes



3 answers

Permanent link
no.. these scripts are only run on workitem saves

0 votes


Permanent link
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.

0 votes

Comments

right.. YOU wrote a process to 'save' all the affected workitems, to cause the scripts to run.


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: May 03 '13, 9:29 a.m.

Question was seen: 6,111 times

Last updated: Jun 27 '13, 8:20 a.m.

Confirmation Cancel Confirm