It's all about the answers!

Ask a question

Why does my script run only once in calculated values?

German Ortega (13) | asked Jan 26 '17, 1:17 p.m.


(function() {
var WorkItemAttributes =;
    dojo.declare("com.calculated.testingIteration", null, {

        getValue: function(attribute, workItem, configuration) {

          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

permanent link
Donald Nong (14.5k314) | answered Jan 29 '17, 11:29 p.m.

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.

A similar question (probably more) was asked in the past.

Your answer

Register or to post your answer.