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

Scripting custom attributes

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.?????));
}
});
})();

0 votes



One answer

Permanent link
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

0 votes

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: Sep 13 '12, 4:08 p.m.

Question was seen: 3,857 times

Last updated: Sep 13 '12, 8:34 p.m.

Confirmation Cancel Confirm