Requirement on RTC
![](http://jazz.net/_images/myphoto/b1c88fad0a30ad1f8ae04395fd4e9f2f.jpg)
Hello All,
We have a requirement like work item 2 can be worked on (any modify or state-change operation) only after work item 1 reaches Closed state. Otherwise, any operation on work item 2 should throw an error indicating work item 1 is not Closed yet.
Please let me know if this can be implemented and what version of RTC does it supports. Any pointers and tips would help. Thanks in advance.
Thanks,
Chandrahasa Reddy
One answer
![](http://jazz.net/_images/myphoto/b1c88fad0a30ad1f8ae04395fd4e9f2f.jpg)
There is currently nothing in RTC that would provide this capability. You would have to create a work item save advisor (precondition) where you use a link or something else that indicates the relationship (e.g. depends on) and on save of the work item you would have to look if the referenced work item (if there is a reference) is in a certain state or state group. If the sate group does not allow to save the work block the save.
See the following hints and examples:
https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
See the following hints and examples:
https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
Comments
Taki Nakajo
Jul 28 '15, 10:56 p.m.Are those work items a parent-child relationship? If so, you can use the precondition "All Children Resolved". Does it satisfy you?
http://www-01.ibm.com/support/knowledgecenter/SSYMRC_6.0.0/com.ibm.team.workitem.doc/topics/t_defining_precond_fuactions_web.html?cp=SSYMRC_6.0.0&lang=en