- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:44 PM
Hello,
Our Requirement is In change request approval field must be synchronized to Ctask.
Ex: In change request if the approval field changed to approved , then Ctask also approval field will change to approved.Attached screenshot.
I have tried one after insert business rule for change_task table but its not working.
Can anyone help how to achieve this requirement.
Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:11 PM - edited 02-01-2024 10:12 PM
Hi @Servicenow de11 I have corrected your script.
Your Business rule must be on change request table with after update checked
script:
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:41 PM
Hi @Servicenow de11 change if condition to while condition like below
if (chgTask.next()) { // change this to
while(chgTask.next()
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:11 PM - edited 02-01-2024 10:12 PM
Hi @Servicenow de11 I have corrected your script.
Your Business rule must be on change request table with after update checked
script:
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:21 PM
Hi Harish,
Thanks for the script, its working now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:39 PM
Hi Harish,
Script is working for only one CTask created. If we create more than one CTask the given is not working.
Can you please let me know the script for all Ctasks approvals updated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 10:41 PM
Hi @Servicenow de11 change if condition to while condition like below
if (chgTask.next()) { // change this to
while(chgTask.next()
Harish