Calculate work item 'owned by' by 'found in'
![]()
Hi,
I am attempting to set the 'Owned by' field based on the category selected.
Here is my javascript
dojo.provide("com.ibm.team.workitem.attribute.owner");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.ibm.team.workitem.attribute.owner", null, {
getValue: function(workitem) {
var catagory= workItem.getValue(WorkItemAttributes.FOUND_IN);
if ((catagory === "Product 1.9.0.2")) {
return "xxy@us.ibm.com";
} else if ((catagory === "Product 1.9.0.1")) {
else return "xxyy@us.ibm.com";
} else if ((severity === "Product 1.9.0.0")) {
else return "xxyyy@us.ibm.com";
} else {
return "no_idea@us.ibm.com";
}
}
});
})();
|