I'm aware of this, it's what we're doing right now. The question is whether we can get the custom fields for both Stories and Defects (and Primary Work Items) in one query.
So if I issue something like:
Where Custom_Story1 is specific to Stories, Custom_Defect2 is specific to Defects and Custom_PWI_ExportFlag is specific to PrimaryWorkitems, I get an error. I have to do this instead:
Then for each item:
$url/Story/$id?sel=Custom_Story1 (if it's a Story)
$url/Defect/$id?sel=Custom_Defect1 (if it's a Defect)
Then combine the results from the original query with the individual results.
What I'm wondering is whether there is a way to issue 1 query for Workitem(s) and get it/them - with PWI- and Story- or Defect-specific custom fields - in one go.
Sorry to hijack this thread, I should have posted separately.
read more »