how to get all the values of a multi valued custom attribute .
HI All,
I have a custom attribute which holds multiple values. ie. we can select multiple options as attribute value. I want to get all those attribute values.
Object attributeObj = newState.getValue(attribute);
String attrVal = null ;
if( attributeObj instanceof Identifier) {
attrVal = getLiteralByID(attribute,(Identifier)attributeObj);
}
The above snippet is for reading the attribute value if it holds single value. but in my case attribute has a option of holding multiple values. I want to get the selected values .Kindly help me. Looking forward for reply
One answer
See https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ section "List Attributes" at the end.