Auto assignment of incident to groups based on keywords mentioned in short description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2018 04:07 AM
I have a requirement where incident must b auto assigned to the group based on the keywords mentioned in the description. Kindly assist
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2018 10:33 PM
Please mark as a correct answer if this is working perfectly or let me know if you have any further query.
-Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2018 04:15 AM
Hi,
yes that is possible ,Kindly create a new BR with the following condition:
if( current.["Value" for the short-description].toLowerCase().indexOf('keyword1') >=0)
{
current.assignment_group = "[sys_id of desired assignment group1]";
}
else if(current.["Value" for the short-description].toLowerCase().indexOf('keyword2') >=0)
{
current.assignment_group = "[sys_id of desired assignment group2]";
}
---
---
else {
current.assignment_group =' ';
}
Regards,
Munender
**let me know in case of any issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 06:37 AM
Need further assistance on this. Can you please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 07:11 AM
I added below mentioned code but it is not working:
if(current.task.short_description.toLowerCase().indexOf('software') >=0){
current.assignment_group = "f8ae13d86fcfd100934ecccc5d3ee45a";
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2018 03:18 AM
Hey,
A small change needed in your code:
use this,
if(current.short_description.toLowerCase().indexOf('software') >=0){
current.assignment_group = "f8ae13d86fcfd100934ecccc5d3ee45a";
}
Regards,
Munender