custom fields from IWorkItem object

Description
mberhorst
Posts: 15
Joined: Wed Mar 03, 2010 9:46 am

custom fields from IWorkItem object

Postby mberhorst » Thu Jul 22, 2010 6:47 am

Hallo everybody,

via the IWorkItem object it is possible to call the method getCustomField.
But how I get the value of the custom field?
The method returns a java.lang.Object.
Which type of object returns the method?

Thank you in advance.

regards
Michael

JiriWalek
Posts: 49
Joined: Fri May 05, 2006 3:05 pm

Re: custom fields from IWorkItem object

Postby JiriWalek » Thu Jul 22, 2010 8:31 am

Hello,
in javadoc you can read:
getCustomField
Returns: The value of given custom field or null if no such exists.

So what you get is the actual value, the java type depends on the custom filed type:
- string type = String object
- integer = Integer object
- enum:release type = IEnumOption
- muli enum = list of IEnumOptions

Best regards,
Jiri
Jiri Walek
jiri.walek@polarion.com
Polarion Software

mberhorst
Posts: 15
Joined: Wed Mar 03, 2010 9:46 am

Re: custom fields from IWorkItem object

Postby mberhorst » Mon Aug 02, 2010 9:01 am

Hello Jiri,

it worked! Thanks for help.

Best regards
Michael


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 5 guests