I have several work items that contain a custom field called "Reference ID" whether it is possible to request the use of wiql in this custom field. I am currently using the following approach:
// foreach project in TFS
// form wiql
WorkItemCollection workItemCollection = workItemStore.Query(
" SELECT [System.Id], [System.WorkItemType]," +
" [System.State], [System.AssignedTo], [System.Title] " +
" FROM WorkItems " +
" WHERE [System.TeamProject] = '" + tfsProject.Name +
"' ORDER BY [System.WorkItemType], [System.Id]");
// run the loop with the result set
// if workitem.Fields ["Reference ID"] = required value
// perform some tasks on this work item
this approach takes quite often, since there are more than 1000 results.
my question is: is it possible to add a special field also as a filter condition in the above query
source
share