- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 08:50 AM
Hi All,
How to route all orphaned tickets (assigned to groups / users who don't have roles) back to their original groups?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 04:20 AM
Do this via Flow Designer
Trigger
Schedule
Action
Look up for records
where Inc.assignemnet group is empty ( or as per conditions)
Logic
For each
Action
Update record
Assignment group = SD
For each record
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 08:57 AM
I think best way is if it orphan assign to SD group so that team assign to rigtt team.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:38 PM
Instead of assigning to SD group manually.
can we assign it to group by using script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:52 PM - edited 02-06-2024 06:55 PM
Hello @Kaleem Shaik ,
Try below after create/update business rule with condition assigned to is not empty and use below script for future incidents and use below script in fix script to route all current orphaned tickets(assigned to users
who don't have roles back to their original groups
var t = current.assigned_to;
var userrole = new GlideRecord('sys_user_has_role')
userrole.addQuery('user',t)
userrole.addQuery('role','sys_id of the role')//
userrole.query()
if(!userrole.next())
{
current.assigned_to='';
current.setWorkflow(false);
current.update();
}
if it helps kindly click on helpful and mark it as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 03:32 AM
This above script is not working.