It's all about the answers!

Ask a question

How to fetch a selected value of a custom attribute of type enum(drop down) using JAVA API


Querier Q (113) | asked Sep 10 '19, 9:38 a.m.

 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



permanent link
Ralph Schoon (63.5k33646) | answered Sep 10 '19, 9:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


Register or 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.