- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 10:46 PM
I have requirment to auto populate assignment group on change task as same as change request.
(function executeRule(current, previous /*null when async*/ ) {
var changetask = new GlideRecord('change_task');
changetask.assignment_group = current.assignment_group;
})(current, previous);
but this is not workling please help.
regards,
Siddhesh.
Solved! Go to Solution.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 10:54 PM
Hello Siddhesh,
Solutions :-->
1) Create a dictionary override for the assignment group field on change task table and use the following script in the default value column
javascript:parent.assignment_group;
2)Code Snippet
task.assignment_group = current.assignment_group;
Regards,
Vaishnavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 10:54 PM
Hello Siddhesh,
Solutions :-->
1) Create a dictionary override for the assignment group field on change task table and use the following script in the default value column
javascript:parent.assignment_group;
2)Code Snippet
task.assignment_group = current.assignment_group;
Regards,
Vaishnavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2023 11:48 AM
You're 1st solution doesnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2022 12:02 AM
Hello There!
Your current code only contains an empty GlideRecord object. You should use the addQuery()/addEncodedQuery() and query() methods to fetch the Change, only then you can properly reference it.
In your case however, you should be able to use dot-walking to achieve the same. Your BR should be a "Before" BR from the looks of it
current.assignment_group = parent.assignment_group;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 10:29 PM
Hi Siddhesh,
Go to Workflow : Change Request - Normal change tasks (and Checkout) > Create Task node > Under Advanced Script section add the following code : task.assignment_group = current.assignment_group;
If solved, Please mark the suggestion as helpful.
Thanks