Why does my script run only once in calculated values?
![]() dojo.provide("com.calculated.testingIteration");
var state = workItem.getLabel(WorkItemAttributes.STATE);
var count = workItem.getValue(attribute);
if(state == "Development") {
return 3;
} else {
return 2;
}
}
});
})();
I wrote a calculated value script that returns 3 if the state = "Development" or else return 2 otherwise. I'm expecting the attribute to change to 2 when the state changes but it looks like it only reads the script when I refresh the page. This worked development testing but when moved to production it stopped working and I'm not sure why. Can someone help?
|
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.
|