How do you set calculated value for a Tag attribute
![](http://jazz.net/_images/myphoto/5f7a6e4ca24939b3d00207c59f8cddb2.jpg)
On a javascript, what is the format for return tags on a workitem calculated value?
dojo.provide("com.ibm.san.workitem.js.clasificaciones");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
dojo.declare("com.ibm.san.workitem.js.clasificaciones", null, {
getValue : function(attribute, workItem, context) {
return ["tag-1", "tag-2"];
// String array? It doesn't seems work.
}
}
Accepted answer
![](http://jazz.net/_images/myphoto/5f7a6e4ca24939b3d00207c59f8cddb2.jpg)
As far as I can tell, the Java API expects a collection of strings. I am not aware if there is a way to provide that using the AttributeCustomization API. Maybe someone else is able to, but I have so far not succeeded in setting multi value attribute types. Also please note that https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript only mentions very basic types as supported.
If you read the Tags, you get a string like "tag1, tag2, tag3".