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

Incorrect behaviour of "Open Work Item" Action



Unable to open a work object using OpenWorkItem. A property reference is provided to maintain the work object ID as the input parameter for OpenWorkItem.

Error Messages

Work Object Not Found
The work object was not found in the current application.
Check the ID and try again.

Pop-Up with message “Undefined”

Steps to Reproduce

  1. Create a Navigation Rule.
  2. Navigate to the Actions tab > Configure an activity to create a work object and open it.

Root Cause

Menus do not support change track enabled actions. They resolve property references in the actions while rendering them and stamps them directly in the action JSON. When the property value changes in any of the menu actions, the value is not propagated to the subsequent actions.


Perform the following local-change:
  1. Include a hidden button with open workitem in the section
  2. Use the RunScript action after the refreshSec with custom activity on the menu (to start the custom activity)
  3. Click the hidden button. The RunScript action must trigger a custom function which fires a top priority click event on the hidden button.

Include a HiddenButton button with the openWorkHidden cell read-write class, openWorkHidden cell read-only class, and openworkitem action in TestSec section. Refer the Fixnav navigation rule for menu configuration. Additionally, add the following script in UserWorkForm:

function customWorkItemOpener(){
var hiddenButton = $(".openWorkHidden button");
pega.control.actionSequencer.fireTopPriorityEvent(hiddenButton[0], 'click');

Published October 31, 2017 - Updated October 8, 2020

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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