Get Macro state of a WorkItem in Java Plain API
Hello,
I know how to get the state of a given workitem:
def workItemClient = (IWorkItemClient)repository.getClientLibrary(IWorkItemClient.class)
IWorkflowInfo info= workItemClient.findWorkflowInfo(wi, mon);
def status = info.getStateName(wi.getState2());
println("\tWorkItem State is: " + status)
But states values might be different depending on the type of WorkItem (Epic, Stories, Tasks, Defects, etc...).
But I know there are other type of states that are more general/macros that applies for all types of WorkItems,
I don't remember how that kind of states are named. Their values are more generic like opened, closed, etc.
So my question is:
How is the name of that type of states more general?
And how is the code to obtain the value of that state for a workitem?
Thanks a lot for the help.