Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC Attribute Customization debugging

 I have taken over for a former employee who setup most of the RTC System. He had previously created an Attribute customization and it works. I am trying to create a new attribute but can't seem to debug it. I even "dumbed" it down to try and get some output to the console, but I'm getting nothing in Chrome other than that it finds frbapproved.js. I tried to put some breakpoints in the javascript but I get nothing.



dojo.provide("org.example.workitems.providers.frbTest");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
  var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
  dojo.declare("org.example.workitems.providers.frbTest", null, {
    matches: function(workItem, configuration) {
      console.log("TEST123");
      var frb = workItem.getValue("com.ibm.team.workitem.attribute.frbapproved");   

  console.log("FRB Value" + frb);
      return true;
    }
  });
})();


0 votes


Accepted answer

Permanent link

You created a condition. It might be that you can not debug it in the JavaScript Debugger, because
- You did not configure the operational behavior
- The code is so broken that it not even loads

There is a special log you want to look at. Please see some tips in this workshop:



Chrome has worked best for me when debugging.

Brett Shegogue selected this answer as the correct answer

0 votes

Comments

Thanks Ralph! I failed to setup the Operational Behavior

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 02 '18, 11:24 a.m.

Question was seen: 916 times

Last updated: Aug 02 '18, 3:57 p.m.

Confirmation Cancel Confirm