It's all about the answers!

Ask a question

automatic status update for the work item “Story

Girish Jangame (1116) | asked Dec 07 '16, 9:29 a.m.
I want to implement "When all its children are closed ”then the story becomes closed" this condition

but i unable to get the particular Closed status of the Work Item Story through code.
please anyone help me out for that

Meanwhile i have hard coded the value of state which is present in Process Configuration Source file in java code as

Identifier<IState> array[] =workflowInfo3.getAllStateIds();
for (int i = 0; i < array.length; i++) {
// We want to modify the parent, so get a working copy.
   parent = (IWorkItem)parent.getWorkingCopy();
// Set the duration on the parent to be the total of child durations
   // Save the work item with an information that could be used to prevent recursive ascent.
   workItemService.saveWorkItem2(parent, null, null);

In this code for closed status ""
This Id is present in Process Configuration Source file.

But I want to get it from code instead of writing it as above.

Please help me out.

One answer

permanent link
Ralph Schoon (61.6k33643) | answered Dec 07 '16, 9:49 a.m.
edited Dec 07 '16, 9:53 a.m.
 Find some hints here: and here:

Your answer

Register or to post your answer.