It's all about the answers!

Ask a question

Caluculated Value Script fails in Server

vinitha dsouza (14720129) | asked May 03 '19, 8:04 a.m.
edited May 07 '19, 4:33 a.m.
Hello Team,

We have introduced new attribute wiki type and setting the value on save of workitem.
Script is follows:

(function() {

 var WorkItemAttributes =;
 dojo.declare("com.rtc.js.client.PdcWidgetScript", null, {
 getValue: function(attribute, workItem, configuration) {
 var workitemId = workItem.getValue(WorkItemAttributes.ID);
 console.log('workitemid' + workitemId);
         if(workitemId === -1)
 return "";
 else {
 var hardcode = '{{';
 var finalString = hardcode + workitemId + ' | Fill PDC }}';
 return finalString;

After we rollout to Productive, we see value of Attribute is not set for some workitems.
When we take the same template back to Test environment, things are fine.

When i check the logs in the Productive, i see below failure and not sure what does it mean,
<Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0@> /ccm/service/] [ERROR]                       - Error invoking value provider 'PDCForWiki' associated with the attribute 'Initiate PDCLink' in the project area with id '_01T-QMPkEeSSPtPHKO0xfg'. You can link to the project area definition using a URL similar to https://thehostname:9443/jazz/process/project-areas/_01T-QMPkEeSSPtPHKO0xfg, where the host name, port and jazz context are configured for your installation. Contact your project area administrator for assistance.

    at org.mozilla.javascript.NativeArray.get(
    at org.mozilla.javascript.ScriptableObject.getProperty(
    at org.mozilla.javascript.ScriptRuntime.getObjectElem(
    at org.mozilla.javascript.ScriptRuntime.getObjectElem(
    at org.mozilla.javascript.gen.c7._c52({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", "name":"dojo.js"}:901)
    at{"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", "name":"dojo.js"})
    at org.mozilla.javascript.optimizer.OptRuntime.callName(
    at org.mozilla.javascript.gen.c7._c54({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", "name":"dojo.js"}:994)
    at{"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", "name":"dojo.js"})
    at org.mozilla.javascript.optimizer.OptRuntime.callName(
    at org.mozilla.javascript.gen.c7._c56({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", "name":"dojo.js"}:998)
    at{"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources", ......

Be the first one to answer this question!

Register or to post 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.