34 views

Description

The Assignment Group is not saved in service_task for new records.

Steps to Reproduce

  1. Type service_task.do in the filter navigator.

  2. Set Assignment Group to "change management".

  3. Set Assigned to as "change manager".

  4. Right-click in the form header and choose Save.

    Note that the Assignment group and Assigned to value are not saved.

 

Workaround

  1. Open the workflow editor in a global scope.

  2. Navigate to Workflow > Workflow Editor.

  3. Open the workflow "Service Task Processing" workflow.

  4. In the title bar, click the menu icon and select Checkout.

  5. Click on the Run Script "Assign to User and Group". Update the script as follows:

    Existing code: 

    current.assignment_group = workflow.scratchpad.assignment_group.value; 
    current.assigned_to = workflow.scratchpad.assigned_to.value; 

    New code: 

    if(!current.assignment_group) 
    current.assignment_group = workflow.scratchpad.assignment_group.value; 
    if(!current.assigned_to) 
    current.assigned_to = workflow.scratchpad.assigned_to.value; 
  6. After you have finished editing the workflow, validate and publish the workflow to make the new version available to other users.

 

For more information about editing the published workflow, see the product documentation topic Work on workflows.


Related Problem: PRB1288788

Seen In

There is no data to report.

Intended Fix Version

Madrid

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-07-31 02:23:19
Published:2018-07-24