Querying for Unresolved items via Plain Java API
Hi,
I see a few attempts to ask this question in the past, but no accepted answers.
Surely someone out there is doing this successfully?
I have other code that works fine for querying work items for various attributes, but cannot see how to query for Unresolved items.
I tried the approach below, but I get an exception at the point noted: com.ibm.team.repository.common.query.QueryException: Unknown queryable reference: stateGroup
Any ideas how to query for only unresolved items, please?
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Apr 14 '20, 2:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 14 '20, 2:31 a.m.
There are some hints here: https://www.google.com/search?&q=find+unresolved+work+items+site%3Ajazz.net
|
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.
Comments
Are you sure the exception occurs the first time through the loop? If not, one would need to see the rest of the loop body.
Note that my comment was just to clarify the question .. I personally do not know these APIs.
This causes an exception from resolvedResults.hasNext :
expr3 = new AttributeExpression(qattr3, AttributeOperation.NOT_EQUALS, IWorkflowInfo.CLOSED_STATES);
This does not:
expr3 = new AttributeExpression(qattr3, AttributeOperation.STATE_GROUP_NOT_EQUALS, IWorkflowInfo.CLOSED_STATES);