I have not been able to figure out how to use the queryWorkItems() method with a custom field.
Here is what I have for the method so far:
Code: Select all
private String[] fields = {"workRecords", "project"};
WorkItem[] items;
items = trackerService.queryWorkItems("project.id:sandbox AND workRecords.user.id:" + user.getId(), "project", fields);
This works fine. However, we have a custom field with ID 'billing_code' that I am trying to query for, but this does not work:
Code: Select all
private String[] fields = {"workRecords", "project", "billing_code"};
and the variations that I have tried do not work either. Does anyone know how to do this?
also, the billing_code custom field is only available in the 'sandbox' project, which I specify in the query.
Thanks,
Scott