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

Precondition to prevent "starting" a work item?

All,

5.0.2

I have a PM that wants to tie three tasks together with predecessor and successor. So work item 1, 2, and 3. They don't want work item 2 or 3 to be started until 1 is closed. Is this possible? The same for 3 until 1 and 2 have been closed.

Is there a better solution?

0 votes



2 answers

Permanent link
you would have to write a server side extension to accomplish this, but it is possible.

Ralph has an extension on his blog that closes the parent when the children workitems are closed
https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/

to develop these extensions, see the extensions workshop
https://jazz.net/library/article/1000

0 votes


Permanent link
There are no built in advisers that would prevent this. It would be possible to create an advisor that triggers on changing the state away from new, follows the link and checks if the work item(s) in the chain before are in progress already.

I don't think it is wise to do this, but that is just my personal opinion. If you over-regulate your processes, this does not make the users like them any better.

Anyway, here is some code for a follow action that has a lot of the code you would need. https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/ an advisor looks similar to https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ except for the interface and the return data, the API's used are typically the same. 

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
× 12,019
× 7,495
× 6,121

Question asked: Dec 08 '15, 7:29 a.m.

Question was seen: 3,740 times

Last updated: Dec 08 '15, 7:42 a.m.

Confirmation Cancel Confirm