define default enumeration
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
I did default value provider of Description item.
But I want to set define default enumeration values,it' not working as description item
dojo.provide("com.example.common.Enumtor");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var instructions= {
"priority.literal.l01": "guidelines"
}
dojo.declare("com.example.common.Enumtor", null, {
getDefaultValue: function(attribute, workItem, configuration) {
var instruction= instructions;
return instruction || "";
}
});
})();
I did default value provider of Description item.
But I want to set define default enumeration values,it' not working as description item
dojo.provide("com.example.common.Enumtor");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var instructions= {
"priority.literal.l01": "guidelines"
}
dojo.declare("com.example.common.Enumtor", null, {
getDefaultValue: function(attribute, workItem, configuration) {
var instruction= instructions;
return instruction || "";
}
});
})();