How to fetch a selected value of a custom attribute of type enum(drop down) using JAVA API
I have a custom attribute of custom work item type. It is a drop down of type Enum. How to fetch the selected value of already created workItem using Java API. |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Sep 10 '19, 9:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ +CTRL+F type enumeration. Comments
Querier Q
commented Sep 12 '19, 6:51 a.m.
Thanks for your response Ralph. This code will help me get all the dropdown values. I am looking for code that will help me fetch the selected value in the dropdown. Could you please help here.
Ralph Schoon
commented Sep 12 '19, 7:02 a.m.
| edited Sep 12 '19, 7:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can not fetch any value of any dropdown. You can read the work item attribute value. Or you can iterate the enumeration to get the available literals and literal ID's, to set a value.
Read the rest of the article and follow the suggestions for other links if you are new.
|
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.