Auto assigning ticket to particular group based on email subject line.

Community Alums
Not applicable

Hi ,

we have configured to auto create ticket based on email subject line through inbound action.

Now our requirement is like base on subject line auto created request should assign to particular group.

could some help us how to achieve this.

regards,

roopa

21 REPLIES 21

anurag92
Kilo Sage

have you tried this:



if (email.subject.indexOf("your_text") >= 0)


{


current.assignment_group = 'sys id of your group';


}


Deepa Srivastav
Kilo Sage

You can add condition like.. if (email.subject=='') then set assignment grp = give the sys_id of the grp. Are you facing any issue in that?



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Roopa,



Here you go.



if (email.subject.indexOf("Your Text") >= 0)


{


current.setDisplayValue('assignment_group','PASS GROUP NAME HERE');


}


Inbound Email Actions - ServiceNow Wiki


nayanawadhiya1
Kilo Sage

Hey Roopa,



You can check


if ( email.subject == "Something"   )


{


current.assignment_group = any_Groups;


}



like this you can do it on Email INBOUND ACTION