It's all about the answers!

Ask a question

IBM RTC 605 Calculated values Cannot read property 'HttpConnectorParameters' of undefined


Rafael Rodriguez Montes (23013130258) | asked Jul 15 '19, 2:52 a.m.

 Hi, 

I'm trying to send information via script on the calculated values section, I created a javascript, and I'm trying to use 
dojo.require("com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters");
it was working in the begining but suddenly start showing this error:
ERROR: TypeError: Cannot read property 'HttpConnectorParameters' of undefined
I didn't change anything so I wonder if this was like temporal working feature available for calculated values of an attributes.
any alternative to send post? via rest? or something reliable?

it crashes right here:
var params= new com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters();

script here:
dojo.provide("org.example.calculated.test");

dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

dojo.require("com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters");

(function() {
var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;

    dojo.declare("org.example.calculated.test", null, {
        getValue: function(attribute, workItem, configuration) { 
var params= new com.ibm.team.workitem.api.common.connectors.HttpConnectorParameters();
... 

Thanks

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.