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

Unable to setValue of custom Enumeration attributes

 Hello,

I am trying to map the attributes of work item to another project area work item but unable to set the literals of enumeration from one project area attribute to another.
While doing this I can able to get the literal values and and when I call copyEnumerationAttribute method
it set the value by setValue(targetWorkItem, targetAttribute, value);
But the values is not reflecting in the targetWorkItem.

Thanks In Advance

0 votes



One answer

Permanent link
 You can not necessarily use the literals across project areas. they only live within their project area. You would have to use a mapping and e.g. look up the literal from the display value. You should actually see exceptions if you set the wrong literals.

I am not aware of a copyEnumerationAttribute() method in the API, but that does not mean t does not exist.

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
× 10,938
× 7,495

Question asked: May 17 '16, 8:58 a.m.

Question was seen: 2,851 times

Last updated: May 17 '16, 9:05 a.m.

Confirmation Cancel Confirm