Retrieve list of allowed value of a custom attribute via Java api
Hi guys,
2 answers
You should be able to look into the process specification to find out what type a custom attribute has. The type specifies the values it could have. The name of a custom attribute is not enough data.
Comments
If I print attribute type...I found mediumString.
That is a valid attribute type that can contain any string type attribute up to a certain lenght.
Ok in my case if I open web user interface of RTC for that value I have a dropdown list.
This is a question you should either be able to answer yourself, or you should talk to the people maintaining your process, because you either know it or know where to look it up.
As a sidenote, attribute customization does not work if accessing the work item through the APIs.
I discover that in the system is present a file Defect.xml that contains element like
Comments
This is likely not something that would be available in the official Java API. this is UI code. The UI is likely using a HTTP filtered value set. Since it is likely not external code, I can't tell where is is. It is possible to search the SDK for class names, if it was set up as described in https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/