How to auto assign incident to a particular group based on few words in description
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 01:39 AM
Hi All,
I want to auto assign an Incident to a group based on few words in the description field. Please let me know how I can do that. Few words such as bot, UI path, rpa , etc etc. I am trying with one word as of now, but it is not working. Please guide
if(producer.description.toLowerCase().indexOf('RPA')>=0)
{
gs.addInfoMessage("testing rpa");
current.assignment_group="77c9b13d1bfe205026de123edc4bcb9a" ; //RPA team
}
11 REPLIES 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 03:35 AM
info message is not coming it means it's not going inside the IF
Did you check the variable name is correct?
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 03:48 AM
Yes I even put a log for producer.description .
It returned the text that is entered.
After the if condition it is not displaying