I have looked through forums, found similar problem:
viewtopic.php?f=5&t=20087
The solution doesn't seem to work for me.
Example:
String[] fields = { "id", "hyperlinks","status","created", "author", "updated", "customFields.functionalArea","resolution","severity","type","categories","title" ,"project"};
WorkItem[] wkItem = trackerService.queryWorkItems(
"project.id:" + this.prop.getProperty("project_id_polarion") + "AND author.id:polarionsystem", "id",
fields);
for (WorkItem item : wkItem) {
// ** Using workitem class **
System.out.println(item.getCustomFields("functionalArea"));
// I have tried with multiple custom fields
// gives me [Lcom.polarion.alm.ws.client.types.tracker.Custom;@48793bef
// ** Using trackerService class **
String[] getKeys = trackerService.getCustomFieldKeys( item.getUri());
// Gives me all keys for custom fields
CustomField getValues = trackerService.getCustomField( item.getUri(),"functionalArea");
// gives me [com.polarion.alm.ws.client.types.tracker.Custom@11157faa]
...
}
Sorry if I am missing something obvious here
I am not able to get custom workitem value from SDK.
-
- Posts: 1
- Joined: Tue Sep 17, 2019 3:55 pm
Return to “Polarion SVN Importer (Repository Converter)”
Who is online
Users browsing this forum: No registered users and 4 guests