Hi @Anmol12,

To populate the 'rich_description' from an HR Case to an HR Task in ServiceNow, you can use a combination of Business Rules, Script Includes, or Workflow Scripts. Since the '{$parent.rich_description}' is not working directly, you may need to manually script the population of the field.

Alternative Approach Using Workflow Script

If you are using a workflow, you can also achieve this with a workflow script:

1. Add a Script Activity to Your Workflow
- Open your HR Case workflow.
- Add a new `Script` activity to the workflow.

2. Configure the Script Activity

 

// Get the current HR Case and its HR Task
var hrTask = current; // Assuming this script runs in the context of an HR Task
var hrCase = new GlideRecord('sn_hr_core_case');

if (hrCase.get(hrTask.parent)) {
// Copy the rich_description from the HR Case to the HR Task
hrTask.rich_description = hrCase.rich_description;
hrTask.update(); // Save the HR Task record
}

 

This script assumes that it is being executed in the context of an HR Task within a workflow. It retrieves the parent HR Case and copies the 'rich_description' to the HR Task.

 

Thank you, please make helpful if you accept the solution.

View solution in original post