How to query work-items with more than one status as condition via client API
We are aware we can query work-items on their single status as:
Identifier<IState> stateId = ...
or we can query work-items on their status group as:
IQueryableAttribute stateAttr = ...
but we would be able to query work-items for a set of status as condition:
Identifier<IState>[] stateIds = ...
It seems to be pretty easy via UI: https://jazz.net/forum/questions/170377/how-to-build-complex-rtc-query-combining-and-or-conditions/170383
We tried to extend the com.ibm.team.workitem.common.expression.variables.StatusVariable class to achieve our desiderata, but then the override method IAttributeValue#evaluate was never call during the IQueryCommon#getResolvedExpressionResults execution.
Any advice? On QueryDevGuide we did not find any helpful example.
Thanks in advance.
|
One answer
Well, at least the naïve solution is working:
Term subterm = new Term(Operator.OR);Cheers. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.