Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can you prevent a Parent work item from "outrunning" it's children?

When you create children work items, is there a way to prevent the parent work item from getting into a STATE further along in the workflow than it's children?  For example, I don't want a parent DEFECT to get to Resolved State if there is a child TASK in In-Progress State, or similar?

thanks"
Ken

0 votes


Accepted answer

Permanent link
Hi Ken,

There is a built-in precondition you can use that "Requires that a work item can only be resolved if all of its children are resolved."  To use this precondition,
  1. Open the Team Artifacts view in your Eclipse client
  2. Right-click on your project area and select Open
  3. Click on the Process Configuration tab
  4. In the Configuration section, expand Team Configuration
  5. Select Operation Behavior
  6. In the Operation Behavior table, in the Work Items section, in the Save Work Item (server) row, click on the Everyone cell
  7. In the Preconditions section, click Add
  8. Select All Children Resolved and click OK
  9. Save your changes

If you want something more specific, you can write your own custom precondition.  https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample has more information on how to do this.

Ken Creager selected this answer as the correct answer

1 vote


2 other answers

Permanent link
To add to Lauren's answer, you could create an advisor/precondition that checks the parent and prevents a state change based on the child states. See http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ on how to get to the parent (or to the children, which is the reverse) and http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for how an advisor would look like. Running https://jazz.net/library/article/1000 is the best entry point to get started with development of such code. Please be aware that it is not trivial and you really have to follow the workshop in the details, otherwise you will likely struggle.

0 votes


Permanent link
If you want to do this for parent child, then you can use the supplied Pre-condition as noted above, you have to enable it..

if you also want to do this for Depends On/Blocks links, that is NOT provided, but I posted the source for this pre-condition here

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,131
× 9
× 6

Question asked: Nov 21 '12, 12:45 a.m.

Question was seen: 4,583 times

Last updated: Nov 21 '12, 8:52 a.m.

Related questions
Confirmation Cancel Confirm