Initial values set in an onLoad client script are not passed to the server for reference qualifiers if List v3 is active


Description

If you have onLoad client scripts to pre-populate fields, reference qualifiers that depend on these values do not work if List v3 is active because the values are not passed from the client to the server.

Steps to Reproduce

 

  1. Navigate to sc_task.list and click the New button.

  2. Add an onLoad client script to set the assigned_to field to the UserID value of the current user.

  3. Add an advanced reference qualifier to the cmdb_ci field:
    javascript:"assigned_to="+current.assigned_to;

  4. Impersonate System Administrator, navigate to sc_task.list, and click the New button.

  5. Click the Configuration item search icon.

    One record is retrieved in the reference list pop-up.

  6. Navigate to System Definition > Plugins, and activate List v3.

  7. Log out, close the browser tab, and hop back in to the instance.

  8. Impersonate System Administrator, navigate to sc_task.list, and click the New button.

    Note that the Assigned to field is pre-populated with System Administrator, and the hover icon is populated.

  9. Click the Configuration item search icon.

    Rather than a single record, multiple configuration item records appear because the search filter is for assigned_to=.

Workaround

Choose from the following workarounds:


Related Problem: PRB742691