How do you retrieve resolved work items with the RTC API query facility?
![](http://jazz.net/_images/myphoto/e8892b8e5577ce1020e899886c3c9308.jpg)
I have set up a query with the API and would like to retrieve resolved work items, as well as, unresolved work items. The facility I'm using is:
IQueryResult<IResolvedResult<IWorkItem>> queryResult = queryClient.getResolvedExpressionResults(projectAreaHandle,andExpressionTerm,IWorkItem.SMALL_PROFILE);
I'm only getting unresolved work items back. How do I get resolved?
IQueryResult<IResolvedResult<IWorkItem>> queryResult = queryClient.getResolvedExpressionResults(projectAreaHandle,andExpressionTerm,IWorkItem.SMALL_PROFILE);
I'm only getting unresolved work items back. How do I get resolved?
One answer
![](http://jazz.net/_images/myphoto/e8892b8e5577ce1020e899886c3c9308.jpg)
hi Daniel,
I would review the "andExpressionTerm" to see if its not including some expression to count the resolved work items out..
I use getResolvedExpressionResults with expression and find it listing the resolved work items as well. only difference in my usage is the profile. I use FULL_PROFILE but I assume that would be needed if some attributes weren't available in SMALL_PROFILE
hope this helps.
I would review the "andExpressionTerm" to see if its not including some expression to count the resolved work items out..
I use getResolvedExpressionResults with expression and find it listing the resolved work items as well. only difference in my usage is the profile. I use FULL_PROFILE but I assume that would be needed if some attributes weren't available in SMALL_PROFILE
hope this helps.