It's all about the answers!

Ask a question

How do you set a prerequisite for state change in a custom workflow?


Ralph Earle (25739) | asked Oct 15 '13, 11:57 a.m.
FORUM ADMINISTRATOR / JAZZ DEVELOPER
 I am creating a custom workflow for an RTC project, and would like to configure it so that moving a parent work item to the next status requires all the child work items to be resolved first. Is this possible? Can I configure it using one of the clients, or would custom code be required?

Accepted answer


permanent link
Dinesh Kumar B (4.1k413) | answered Oct 15 '13, 3:55 p.m.
JAZZ DEVELOPER
Hi Ralph,

you would need a custom precondition to be written.  OOTB you can control when a parent work item can be marked resolved based on state of its children but not the state transition to other (non-resolve) states.

here are some earlier posts on similar requirement:
https://jazz.net/forum/questions/94059/getting-the-state-of-the-child-workitem
https://jazz.net/forum/questions/118986/can-a-work-item-state-be-changed-depending-on-the-child-work-items-state

and writing an operation participant is the way ahead, here is a workshop to help you with it:
https://jazz.net/library/content/articles/rtc/4.0/extensions-workshop/downloads/RTC40ExtPoT.pdf

hope this helps
Ralph Earle selected this answer as the correct answer

One other answer



permanent link
Kevin Ramer (4.5k9186201) | answered Oct 15 '13, 12:29 p.m.
edited Oct 15 '13, 12:30 p.m.
I think this can be a pre-condition on Save Work Item Team Operation Behavior..  All Children Resolved.  Described as: Requires that a work item can only be resolved if all of its children are resolved.



Your answer


Register or to post 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.