- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:01 AM
Hi All,
I have a requirement to populate field values from incident to incident task,
In Incident form i am having (business_service=abc, service_offering=wer, cmdb_ci=cde, short_description=test)
these fields i want to populate on incident task while creating new incident task from incident.
For this requirement I'm using below code it's populated all values except 'service_offering' filed value .
Can any one help me on that how can I auto populate all values
Script Include:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:38 AM
@pvv1045330 The script appears to be correct. However, on the incident_task from there is a reference qualifier defined on the Service offering field which only let select those service offering where the parent is value populated on the Business Service field.
In your script, please make sure to populate only those Service offering which are children of Business Service populated on the Service field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:09 AM
Hi,
did you check if your service offering has the parent as the business service which you are selecting. Because in baseline version of ServiceNow task table has reference qualifier on service offering field ( javascript:'parent='+current.business_service;). Pass only that service offering and business service which are related.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:18 AM - edited 10-04-2023 11:39 AM
Hi @pvv1045330 ,
You script is correct please check service offering you are fetching is not empty for that record.
Thanks,
Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:38 AM
@pvv1045330 The script appears to be correct. However, on the incident_task from there is a reference qualifier defined on the Service offering field which only let select those service offering where the parent is value populated on the Business Service field.
In your script, please make sure to populate only those Service offering which are children of Business Service populated on the Service field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 04:30 AM
Hi Sandeep,
Thanks for the response,
If service offering have contain one value it will populated, but it's contain multiple values not value got cleared.
Please help me how to resolve the issue.