Strange behavior of No. of approvals condition in lifecycles
In lifecycles, it was our understanding that when we are adding collaborators/reviewers in any particular state then only we get No. of Approvals condition in the next transition. But we are facing the issue in one lifecycle.
One user did not added collaborators in either the "Review State" or the "Approve State" in one of her Life cycle process. Then also the condition for "Number of Approvals" was available in Approve Transition without adding collaborators in either state.
In one other lifecycle, even when the user added collaborators in the Review state, then also No. of Approvals condition is not coming in the next transition.
Please clarify what should be the expected behavior in these cases?
If needed we will raise it as a bug.
Thanks in advance.
One user did not added collaborators in either the "Review State" or the "Approve State" in one of her Life cycle process. Then also the condition for "Number of Approvals" was available in Approve Transition without adding collaborators in either state.
In one other lifecycle, even when the user added collaborators in the Review state, then also No. of Approvals condition is not coming in the next transition.
Please clarify what should be the expected behavior in these cases?
If needed we will raise it as a bug.
Thanks in advance.
One answer
The 'Number of Approvals' transition should only be available when the state from which the transition originates has 1 or more approvers.
I think the issue you are facing occurs when someone performs the following sequence of actions.
1. Adds an approver to a state
2. Adds a 'Number of Approvals' condition rule to the transition
3. Removes the approver from the state.
In this case, the existing 'Number of Approvals' condition remains on the transition, but a new one can not be added. We don't want to automatically remove the condition because you may just be switching reviewers, but we should show a warning message. See enhancement https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/43743
If you can add anew 'Number of Approvals' condition when the state has no reviewers this is a bug. Please let me know the steps to reproduce the issue as I could not reproduce such a situation myself.
I think the issue you are facing occurs when someone performs the following sequence of actions.
1. Adds an approver to a state
2. Adds a 'Number of Approvals' condition rule to the transition
3. Removes the approver from the state.
In this case, the existing 'Number of Approvals' condition remains on the transition, but a new one can not be added. We don't want to automatically remove the condition because you may just be switching reviewers, but we should show a warning message. See enhancement https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/43743
If you can add a