<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to set an incident to automatically asign to specific group when the user have role in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3184990#M2283</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to resolve this issue please.&lt;/P&gt;&lt;P&gt;When an user login to ServiceNow support portal to create an incident . If the user is a member of group called X and have role called XY then assignment group auto assign to Service consultant group.&lt;/P&gt;&lt;P&gt;I used below business rule but its not worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Krivi_1-1740143571153.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/421239iD2C7367110A680D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Krivi_1-1740143571153.png" alt="Krivi_1-1740143571153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also try to create an Assignment rule for this that's also not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 13:13:16 GMT</pubDate>
    <dc:creator>Krivi</dc:creator>
    <dc:date>2025-02-21T13:13:16Z</dc:date>
    <item>
      <title>How to set an incident to automatically asign to specific group when the user have role</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3184990#M2283</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to resolve this issue please.&lt;/P&gt;&lt;P&gt;When an user login to ServiceNow support portal to create an incident . If the user is a member of group called X and have role called XY then assignment group auto assign to Service consultant group.&lt;/P&gt;&lt;P&gt;I used below business rule but its not worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Krivi_1-1740143571153.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/421239iD2C7367110A680D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Krivi_1-1740143571153.png" alt="Krivi_1-1740143571153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also try to create an Assignment rule for this that's also not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 13:13:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3184990#M2283</guid>
      <dc:creator>Krivi</dc:creator>
      <dc:date>2025-02-21T13:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set an incident to automatically asign to specific group when the user have role</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3184999#M2285</link>
      <description>&lt;P&gt;If you do decided to use an assignment rule, it runs in the user context so you can use the GlideUser API. This is assuming you're wanting to check the user logging the ticket, not the caller (as they could be different if the user is raising on behalf of someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function(current, gs) {

    if (!gs.getUser().hasRole('XY_ROLE'))
        return;

	if(!gs.getUser().isMemberOf('GROUP_NAME_OR_SYS_ID'))
		return;

	//They have the role and group
	current.setValue('assignment_group' , 'sys_id_of_group'); //pull the group from a system property;

})(current, gs)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 13:24:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3184999#M2285</guid>
      <dc:creator>Kieran Anson</dc:creator>
      <dc:date>2025-02-21T13:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set an incident to automatically asign to specific group when the user have role</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3185005#M2286</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/663014"&gt;@Krivi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can either use before insert business rule or assignment rule&lt;/P&gt;
&lt;P&gt;business rule condition: &lt;/P&gt;
&lt;P&gt;Use Actions tab and set the group&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_1-1740144546961.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/421241i2C9B1A17E58D7E7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_1-1740144546961.png" alt="AnkurBawiskar_1-1740144546961.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1740144510605.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/421240i34C3C8FB35FA2235/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1740144510605.png" alt="AnkurBawiskar_0-1740144510605.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 13:29:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3185005#M2286</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-21T13:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set an incident to automatically asign to specific group when the user have role</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3185808#M2297</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/663014"&gt;@Krivi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 12:07:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-set-an-incident-to-automatically-asign-to-specific-group/m-p/3185808#M2297</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-23T12:07:58Z</dc:date>
    </item>
  </channel>
</rss>

