Workitem: Parent -Child relationship
I have created a Release workitem and I want that status should not be changed to 'closed' unless all the associated child tasks are in 'closed' status. I know it happens correctly when we have a story and children associated to it and want to implement the same here.I added the pre-condition "All Children Resolved" but it doesnot help me. Am I missing something ? Alternatively, would like to know is there any way to configure the status of workitem based on its child task. If one child task has failed status, I want that the parent workitem status should automatically change to Failed status.
3 answers
I have created a Release workitem and I want that status should not be changed to 'closed' unless all the associated child tasks are in 'closed' status. I know it happens correctly when we have a story and children associated to it and want to implement the same here.I added the pre-condition "All Children Resolved" but it doesnot help me. Am I missing something ? Alternatively, would like to know is there any way to configure the status of workitem based on its child task. If one child task has failed status, I want that the parent workitem status should automatically change to Failed status.
Hi,
said pre-condition should do the trick provided the correct states in the workflow are marked as closed states.
As far as I know today you can't configure to change the state of a parent automatically on the state of a child. It might be possible to do that creating a server a server extension. See the Rational Team Concert 3.0 Extensions Workshop in the library.
Comments
Here is an example for closing the parent if all children are closed, in case you intent that behavior: http://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/
Hi ralph
following along the same line as Kaushambi's question, where do you specify the pre-condition - all children resolved? I cant find it in the Workflows editor ... I am using rtc 7..5.2 and/or rtc 7.5.1.2
following along the same line as Kaushambi's question, where do you specify the pre-condition - all children resolved? I cant find it in the Workflows editor ... I am using rtc 7..5.2 and/or rtc 7.5.1.2
Comments
Frederick, Using the Eclipse client, open your project. Select the "Process Configuration" tab at the bottom. Expand the "Team Configuration" and select "Operation Behavior". Find "Save Work Item (server)" under "Operations" -> "Work Items". Select the little gear with two people icon shown under the "Everyone" column. Below is the preconditions, select "Add" next to the Preconditions box. "All Children Resolved" should be at the top of the list. Select it, press "OK" and save.
James Freeman