How to fetch work item based on Project area, Team area and Planned for attributes ?
Hello Team,
How to fetch work item based on Project area, Team area and Planned for using Java API?
I am trying to fetch work items based on Project area, Team area and Planned for attributes
Below is the code snippet used to fetch work items based on Project area and Work Item type.
Term term = new Term(Operator.AND);
term.add(prjAreaExpression);
term.add(workItemTypeExpression);
term.add(workItemModifiedExpression);
IQueryResult<IResolvedResult<IWorkItem>> queryResult =
queryClient.getResolvedExpressionResults(projectArea, term, IWorkItem.FULL_PROFILE);
Can anyone please tell me how to do this.
Thank you.
One answer
See https://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/ for some more details. Basically you have to create query-able attributes and expressions and hook them together.