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
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
One answer
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.