How to get a workitem name
One answer
As long as you do not seem to understand the basic concepts of EWM work items and their names, it does not even make sense to try to answer and I won't. I will outline what the problems with this question are, so maybe you can fix them and at some point communicate what you want to do.
Comments
I understand I did not have yet the enough skills or knowledge to formulate the question properly. I am sorry for that,
4. You talk about the name of an Enumeration, that would be something like Priority or Severity. I suspect you are trying to get the name/display text for an enumeration literal.
Yes, this is exactly what I want to get.
Of course. I shared all relevant API in https://jazz.net/forum/questions/277454/getting-an-enumeration-value-from-an-iattribute already. The second link shows how to and contains a download link for example code.
I found it myself, it is (pseudo code)
IEnumeration enumeration= workItemCommon.resolveEnumeration(attribute, monitor);
ILiteral literal= enumeration.findLiteral(workItem.getValue(attribute));
String name= literal.getName();