How can I add a default value to one work item type for a shared attribute?
One answer
Hi Michael,
You can achieve this using a script based default value provider by writing your function to return the different iteration UUIDs depending on workitem type.
You can obtain the UUIDs for your iterations from the rootservices page (https://<host-name>:<port-numbr>/jazz/rootservices) drilling down to project area and then timelines.
The code below illustrates the general idea.
Hope this helps.
You can achieve this using a script based default value provider by writing your function to return the different iteration UUIDs depending on workitem type.
You can obtain the UUIDs for your iterations from the rootservices page (https://<host-name>:<port-numbr>/jazz/rootservices) drilling down to project area and then timelines.
The code below illustrates the general idea.
getDefaultValue: function(attribute, workItem, configuration) {
var result;
var typevar = workItem.getValue("workItemType");
if(typevar=="defect") result= "_EiPCcBJgEeK6lIYfm2Q12w";
return result;
}
Hope this helps.
Comments
Michael Walker
Sep 07 '12, 3:04 a.m.bump bump bump