populate change task fields from change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 08:03 PM
I am trying to create a BR to do the following however can't get this to work, I have tried both before and after insert (see script below), all I am trying to do is:
When a change task is created from a change request the following fields on the change tasks are copied from the parent change:
- The Change Number of the parent change is copied to the Short Description of the Change Task
- The Planned start date and Planned end date of the parent change are copied to the Planned start date and Planned end date of the change task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 10:16 PM
did you check if the BR triggered?
It worked for me well for Short Description but not for other 2 fields
This doesn't sound like a valid business requirement as 1 Change can have multiple change tasks
If this requirement is just for your learning purpose then check the details below
you can use before insert BR on change_task table and copy the fields from CHG to Change task
something like this in BR
(function executeRule(current, previous /*null when async*/) {
current.planned_start_date = current.change_request.start_date;
current.planned_end_date = current.change_request.end_date;
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 11:13 PM
Not sure what is happening, tried all solutions in both work instance and PDI and nothing is working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 11:31 PM
something is blocking the fields from getting populated
Did you see if you can edit them manually?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 05:09 AM
Hi @Scotty88 ,
Please make use of Out of box Change Properties. Where you can define the fields that you want to populate from Change request to change tasks .
Thankyou!