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 (63.5k●3●36●46)
| 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. |
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.