how can be created a work item query with a team area property using the Java API?
![]() It is possible to create a work item query with a specified team area in the RTC Eclipse and web clients?
How can I create a similar one using the Plain Java API?
|
3 answers
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Feb 14 '17, 11:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER See
You can create a query from an expression or use an existing query.
Comments Yes, I have gone through these wonderful articles.
Though, I am still not able to specify a team area as a queryable attribute as it looks like the team area is not an attribute.
I want to create a query which returns all work items assigned to a specified team area or its child team areas.
I tried to use constructs like this:
if(processArea instanceof ITeamArea) {
IAssociation association=
descriptor.getAssociations().createAssociation(processArea);
descriptor.getAssociations().associate(association);
}
Unfortunately it does not work.
Ralf, is it possible to help me what exactly should I do to get the result?
Thanks a lot!
Greetings,
K. Malchev
|
![]() @ Kevin Ramer: Thanks for the useful hint!
I have finally managed to solve my issue with the following pseudo-code:
private void printQueryResults(IProcessArea fProcessArea, |