Value Provider error
Hi All,
I have created a dependent enumeration between 2 value-sets. When i select the values and then save, "it says value not applicable" for all the cases and the ccm.log gives below error: 2012-09-12 10:26:11,333 [ ccm: AsynchronousTaskRunner-0] ERROR com.ibm.team.workitem.common - Error invoking value provider 'com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._Z_J7gOUEEeGdYokq8f0lZw' org.mozilla.javascript.JavaScriptException: [object Error] ({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}#414) mozilla.javascript.gen.c2._c18({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}:413) at org.mozilla.javascript.gen.c2.call({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader", "name":"loader.js"}) Please advise. Thanks. |
2 answers
Hello Valli,
how is the configuration of these providers? If you look in the Process Configuration Source and look for "VALUE_PROVIDER._Z_J7gOUEEeGdYokq8f0lZw" you will find the script that is throwing the error. Regards, Jorge. |
Hi Jorge,
My script is as below: (It is providing the required output, but with above mentioned error in ccm.log). Moreover, another dependent value-set also gets saved, but points a red cross mark saying "value is not applicable - not affecting the working though) dojo.provide("com.ibm.workitems.providers.RequestType"); dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes"); (function() { var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes; dojo.declare("com.ibm.workitems.providers.RequestType", null, { getValue: function(attributeId, workItem, configuration) { console.log("Start.."); var aState= workItem.getValue(WorkItemAttributes.STATE); if (aState == "CRWorkflow.state.s16") return "Build and Deploy Request"; if (aState == "CRWorkflow.state.s17") return "RTC Service Request"; return " "; //No Match } }); })(); Thanks. |
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.