- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 11:01 AM
Hi All,
My scripting knowledge is not that great but in the past I was able to just change the "Issue" type and add the sys_id for the group I wanted all incidents directed to however it is not working and they are all being sent to our Service Desk.
The incidents are being submitted thru the SP by our clients.
Is my sript wrong here and should I be adding something more in..
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 01:09 PM
Hi @Roshni1
You can do this with Assignment rule Rule : https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/task-
OR you can store the group sys_id in the value field of a sys property, then use the gs.getProperty('my.property') to retrieve it.
To troubleshoot , check if there are existing scripts which auto assigns to SD
Thanks,
DJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 11:25 AM
Please check new choice values and make sure it is matching value given in script. If it is correct, please check whether you have any assignment rule and business rule overriding assignment group from this record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 11:26 AM
@Roshni1 ,
for 2 if conditions, in first one you are giving group name and second one you are giving sysid. Please give appropriate sys if group and validate backend values of issue type.
Also Please check if there is any default value or dictionary override on assignment group field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2025 01:54 AM
Hi @Roshni1 ,
Could you Please accept the solution if that solves your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 11:28 AM
A lot to unpack here.
First, its considered EXTREMELY bad practice to use sys_id's in scripts.
Second, you mix methods here. Line 32 you're using the group name instead of the sys_id like all other lines.
Lastly, there's better ways to do this than via script. Take a look at Assignment Rules for example : https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/task-table/c...