Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Subcases show in Open Assignments section even when resolved

SA-21219

Summary



Subcases continue to appear in the "Open Assignments" section of the parent case even after the subcases have been resolved.

Error Messages



Not Applicable

Steps to Reproduce

  1. Define a parent case and a subcase.
  2. From the parent case, initiate a subcase and add a Wait condition for the parent case to wait until the subcase is resolved.
  3. Run the case and resolve the child case and the parent case.
  4. Refresh the parent case.
  5. Observe that the child case continues to be listed in the "Open Assignments" section.

Root Cause



A defect in Pegasystems’ code or rules.

Resolution



Perform the following local-change:

Replace the Java code in step 11 of pyPopulateCaseContentsWrapper activity with the code below:
 
// Create a clipboard page with the name stored in Param.ContentsPageOverride.
ClipboardPage pgAlternate = tools.createPage(tools.findPage("CaseContentsPage").getString("pxObjClass"), tools.getParamValue("AlternateCaseContentsPage"));
 
// Page-Copy CaseContentsPage into pgAlternateCaseContents.
pgAlternate.putAll(tools.findPage("CaseContentsPage"), ClipboardPage.PUTALL_KEEPNEW);
 
ClipboardProperty results = pgAlternate.getProperty("pxResults");
 
java.util.Iterator contentIter = results.iterator();
while(contentIter.hasNext()){
  ClipboardProperty contentItemProp = (ClipboardProperty) contentIter.next();
  ClipboardPage contentItemPage = contentItemProp.getPageValue();
  if(contentItemPage.getString("pyStatusWork").startsWith("Resolved-")){
    contentItemProp.removeFromClipboard();
  }
 
}
Suggest Edit

Published March 25, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us