Cover count -1 on resolving a case which has both parent & child
There is a parent case "A", for which a child case "B" is created. And "C" and "D" are the child cases for the case "B".
Now, when user tries to resolve the case "B" using "pyInvokeForceWithdraw" configured on button click resolves child cases ( C & D) of B first and then B case resolution should occur.
But the resolution of cases doesn't occur and the error comes up on the screen.
** The cover open count is incorrect; it is -1
Steps to Reproduce
1. Create cases as per hierarchy (A- B-C).
2. Add an assignment in B case. Create a section with the button. On click of button, change stage to Resolution.
3. In the Resolution stage, add an utility to Resolve(pyInvokeForceWithdraw) its child case one after the other and then Resolve B case.
In the 8th step of Work-.Resolve activity which performs findPageByhandle on coverPage sometimes returns the value as "pyTopCaseWork" which is not expected and the reason for the reported issue.