Why does my script run only once in calculated values?
dojo.provide("com.calculated.testingIteration");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.calculated.testingIteration", null, {
getValue: function(attribute, workItem, configuration) {
var count = workItem.getValue(attribute);
One answer
Showing your script will not get you the answer. You need to understand how the Calculated Value script is triggered - it was clearly stated in the document.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Script_based_calculated_values
A similar question (probably more) was asked in the past.
https://jazz.net/forum/questions/202887/rtc-calculated-value-triggering-for-any-change-in-status-or-attribute