- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 07:50 AM
How can I copy the Assigned To value in SCTask to Assigned To in RITM?
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 07:59 AM
Hi @John H1 ,
Create a After Update Business rule on sc_task table:
var ritmGR = current.request_item.getRefRecord();
ritmGR.assigned_to = current.assigned_to;
ritmGR.update();
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 07:59 AM
Hi @John H1 ,
Create a After Update Business rule on sc_task table:
var ritmGR = current.request_item.getRefRecord();
ritmGR.assigned_to = current.assigned_to;
ritmGR.update();
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 08:00 AM
A business rule would do the job however a RITM can have multiple sctasks. Has that been considered?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 08:01 AM
Hi @John H1
You can follow the below Link and it matches your requirement
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 08:09 AM
@John H1 ,
Create after update business on sc_task table and add following code:
(function executeRule(current, previous /*null when async*/) {
var ritm = new GlideRecord('sc_req_item');
ritm.addQuery('sys_id',current.request_item);
ritm.query();
if(ritm.next()){
ritm.assigned_to = current.assigned_to;
ritm.update();
}
})(current, previous);
Please refer following screenshots: