- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2020 10:13 AM
Hi All,
I want to set the assignment group in request form as per the task's assignment group which is generated within it.
kindly suggest on this.
in advance thanks.
Thanks,
Shrinivasprasad
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2020 08:35 AM
Hi,
the above script should work; did you try adding logs and check
Can you share the script you are using in catalog task activity script section
var record = new GlideRecord('sc_request');
record.addQuery('sys_id', current.request);
record.query();
if(record.next()){
gs.info('Inside Record');
record.assignment_group = task.assignment_group;
record.update();
}
Regards
Ankur
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-18-2020 10:18 AM
Hi,
So once task is created with respective group same has to be updated in REQ
how are you creating catalog task?
Regards
Ankur
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-19-2020 03:34 AM
in my case, it is not updating.
Actually, there are two tasks are creating in RITM, based on that task's assignment group the assignment group of REQ should be filled.
thanks in advance.
Thanks,
Shrinivasprasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2020 04:24 AM
Hi,
How are you creating catalog task? is it from workflow?
so since you have 2 tasks assignment group of which task should be populated
1st or 2nd
Regards
Ankur
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-19-2020 06:28 AM
Hi Ankur,
tasks are creating from workflow and 1st task should be populate i the REQ.
Thanks,
Shrinivasprasad