Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link

See https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ section "List Attributes" at the end.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 20 '18, 7:44 a.m.

Question was seen: 1,104 times

Last updated: Mar 23 '18, 4:04 a.m.

Confirmation Cancel Confirm