It's all about the answers!

Ask a question

Scripting custom attributes


VERT Eric (1533) | asked Sep 13 '12, 4:08 p.m.
I am looking to get the value of a custom attribute in an script

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

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

dojo.declare("com.swm.chargeDomaine", null, {

    getValue: function(attributeId, workItem, configuration) {
   
    
    console.log("custom Value : "+workItem.getLabel(WorkItemAttributes.???????)+" = "+workItem.getValue(WorkItemAttributes.?????));
}
});
})();

One answer



permanent link
Takehiko Amano (1.3k3741) | answered Sep 13 '12, 8:34 p.m.
JAZZ DEVELOPER
Unfortunately, the list of possible attributes is fixed.
  https://jazz.net/wiki/bin/view/Main/AttributeCustomization
Use extension to set value for custom attributes. It is actually so easy to create plug-in than people can imagine.

 https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample

Your answer


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.