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

RTC calculated value script is calling issues

In RTC we have created two integer customized attribute, if the first attribute value (source) has changed then need to change the second attribute value. As well we can change the second attribute value manually.

RTC calculated value script is calling while changing the source attribute values as well saving the workitem. While calling the script in the Save workitem then it copied the first attribute value instead of my manual entered value 

We have two development and production server, in which the development server it is calling the script only one time while the source attribute values changes and it is not calling the script while saving the workitem.

But in production server the calculated Value script is calling both the time. What is the difference between these two server. If any one is facing the same issue, please suggest me to resolve this issue.

Thanks in Advanced.

Govindaraj.

0 votes



One answer

Permanent link
From the documentation https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Calculated_values the calculated script is supposed to run in the following cases:


If you configure a Script-based calculated value, the script will be executed in three cases:

  •     When a work item is created, the script is executed
  •     When a work item is saved, the script is executed to recalculate the value.
  •     When an attribute which the current attribute depends on is changed, the value of the current attribute is recalculated. Depending on the presentations of the two attributes this may not work in all cases.


You can see that your production server is working as it should. I am not sure what is wrong or different on your development server. There is simply not any information here that provides enough to help.

Since calculated values are recalculated that way, it is best to make the calculated attribute read only. If the user is supposed to be able to override the calculated value, add an additional attribute e.g. Correction that the user can write to and that the calculation would prefer, if it is set.

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
× 11,101

Question asked: Jun 09 '16, 1:10 a.m.

Question was seen: 4,464 times

Last updated: Jun 09 '16, 3:00 a.m.

Confirmation Cancel Confirm