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