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.
|
One answer
Ralph Schoon (63.7k●3●36●48)
| answered Jun 09 '16, 2:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jun 09 '16, 3:00 a.m.
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:
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. |
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.