It's all about the answers!

Ask a question

Custom Precondition like 'All Children Resolved' but by WI type and state?


Cliff Gardiner (92623) | asked Apr 10 '15, 10:31 a.m.

Hello all, I have a question for RTC 4.0.7:

the OOTB precondition 'All Children Resolved' is checked when the WI is saved in a Resolved state, but I would like is behaviour similar to 'Prevent Editing' which allows you to specify the WI type and state where the check is applied.  To put it another way, what I'm after is a precondition that checks for all children to be resolved for work item A when saved in state B.

I'm aware that this will require a custom precondition, something I haven't tackled yet, but I'm wondering if anyone has already done this and would be happy to share their experience?

All helping hands warmly welcomed!

Cliff

2 answers



permanent link
Ralph Schoon (57.7k23642) | answered Apr 10 '15, 10:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Cliff,

start here: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/

On that blog are various examples for advisors and participants where you should be able to get all the pieces you need.

Examples:

  • https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
  • https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/
  • https://rsjazz.wordpress.com/2012/11/26/manipulating-work-item-states/
  • https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/

permanent link
Cliff Gardiner (92623) | answered Apr 10 '15, 10:43 a.m.

Thanks Ralph,

that's helpful and I'm sure is just the starting point I need.

Cliff


Comments
Ralph Schoon commented Apr 10 '15, 10:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I should have mentioned that, once you set up the development environment with sources as described, you can also find the code for the built in advisors and look at that code as well.

Your answer


Register or to post your answer.