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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:33 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:37 PM
have you tried this:
if (email.subject.indexOf("your_text") >= 0)
{
current.assignment_group = 'sys id of your group';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:42 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:44 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:45 PM
Hey Roopa,
You can check
if ( email.subject == "Something" )
{
current.assignment_group = any_Groups;
}
like this you can do it on Email INBOUND ACTION