List states which correspond to State Groups with Java Plain API
![]() Hello, In my groovy/java script I get the state group doing:
def workItemClient = (IWorkItemClient)repository.getClientLibrary(IWorkItemClient.class)
Is there a way to list which states are corresponded to each of them?
How would be the code?
Thanks a lot for the help.
|
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Oct 05 '13, 1:03 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You could use expressions http://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/ or (basically the same) http://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ . I am pretty sure you can create an expression for state groups. Since the query editor UI also supports it.
Comments Sorry, the answer above would get all work items in such a state group. Not the states in a state group. I assume you have to iterate all workflows, get the states and their state group. I can't look into the API right now, if there is another way. |