How to auto assign incident to a particular group based on few words in description

Renu9
Tera Contributor

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

Alp Utku
Mega Sage

You can create before business rule on Incident table to run on insert and update

 

When to run : Description contains "rpa" OR Description contains "UI Path" etc

 

Then go to Actions Tab and select your assignment group to assign the Incidents contains those specific words

 

 

 

Renu9
Tera Contributor

Hi @Alp Utku 

I want to write it in record producer script itself. This is in create incident record producer. Please let me know how I can write it in record producer script 

Aniket Bhanse
Tera Guru

Why not use an Assignment Rule on the Incident Table rather than using a Record Producer script?

Ultimately you have to assign a group for an Incident and Servicenow has provided OOB functionality of "Assignment Rules" for such cases.

 

Let me know if this helps!

Hi @Aniket Bhanse 

I'm having a list of words . Case sensitive also I have to check. This is not possible from assignment rules right