<?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 Re: autopopulate assignment group member into the watchlist in Guided Learning: ITSM fundamentals</title>
    <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2413919#M155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/450144"&gt;@edwardwong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please mark my response as correct if it resolves your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 13:08:00 GMT</pubDate>
    <dc:creator>Gunjan Kiratkar</dc:creator>
    <dc:date>2022-12-13T13:08:00Z</dc:date>
    <item>
      <title>autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2410988#M137</link>
      <description>&lt;P&gt;I need to auto populate the watchlist with the assignment group that have been selected on an incident form and it change in real time. so if it in hard the watchlist will have all the group member, when it in software, the watchlist should be change to the software group member, when it blank the watchlist should also be blank. How do i get a group on the watchlist when you can only pick on the user table?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:39:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2410988#M137</guid>
      <dc:creator>edwardwong</dc:creator>
      <dc:date>2022-12-09T21:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411092#M138</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/450144"&gt;@edwardwong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create After Update/ insert BR&lt;/P&gt;
&lt;P&gt;Condition: assignment group changes&lt;/P&gt;
&lt;P&gt;Script&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    current.watch_list = "";

    var grpMembers = new GlideRecord("sys_user_grmember");
    grpMembers.addQuery("group", current.assignment_group);

    grpMembers.query();

    while (grpMembers.next()) {

        var user = (',' + grpMembers.user);

        current.watch_list += user;

    }

})(current, previous);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:13:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411092#M138</guid>
      <dc:creator>Gunjan Kiratkar</dc:creator>
      <dc:date>2022-12-12T09:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411514#M141</link>
      <description>&lt;P&gt;It didnt work, are you sure we dont need to use glideajax and script include to have the change in real time&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 21:50:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411514#M141</guid>
      <dc:creator>edwardwong</dc:creator>
      <dc:date>2022-12-11T21:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411519#M142</link>
      <description>&lt;P&gt;Hi, can you clarify the business requirement\driver for this?&lt;BR /&gt;Why must member of the task assignment group be visible in the watch list?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Watchlist members would not normally get updates to task work_notes,&lt;/P&gt;
&lt;P&gt;and assignment group members would normally receive notifications based on notification 'Users/groups in fields'&lt;/P&gt;
&lt;P&gt;like these OOB examples&lt;/P&gt;
&lt;P&gt;/sysevent_email_action_list.do?sysparm_query=active%3Dtrue%5Erecipient_fields%3Dassignment_group&amp;amp;sysparm_view=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems like an unnecessary customization, what are you trying to achieve?&lt;BR /&gt;You would also have issues removing users if the assignment group changed, as there is no OOB way to identify if a group member pre-existed in the watch list before it was updated with the current assignment group members.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 23:38:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411519#M142</guid>
      <dc:creator>Tony Chatfield1</dc:creator>
      <dc:date>2022-12-11T23:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411927#M146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/450144"&gt;@edwardwong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In that case use below client script and script include:-&lt;/P&gt;
&lt;P&gt;Client Script Onchange of assignment group:-&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }

    //Populate Support group from Service Offering
	g_form.setValue('watch_list','');
    var assignmentGroup = new GlideAjax('getUsersWatchList'); //test is script include
    assignmentGroup.addParam('sysparm_name', 'getWatchList');
    assignmentGroup.addParam('sysparm_group', newValue);
    assignmentGroup.getXML(setWatchList);

    function setWatchList(response) {
        var group = response.responseXML.documentElement.getAttribute('answer');
	
		g_form.setValue('watch_list',group);

    }

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script include Client Callable :-&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var getUsersWatchList = Class.create();
getUsersWatchList.prototype = Object.extendsObject(AbstractAjaxProcessor, {

    getWatchList: function() {
        var grArr = [];
        var assignmentGroup = this.getParameter('sysparm_group');
        var grpMembers = new GlideRecord("sys_user_grmember");
        grpMembers.addQuery("group", assignmentGroup);
        grpMembers.query();
        while (grpMembers.next()) {
            grArr.push(grpMembers.getValue('user'));
        }
       return grArr.toString();
    },

    type: 'getUsersWatchList'
});&lt;/LI-CODE&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="GunjanKiratkar_0-1670836304883.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/224659i991C7970AFCC171B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GunjanKiratkar_0-1670836304883.png" alt="GunjanKiratkar_0-1670836304883.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GunjanKiratkar_1-1670836338295.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/224661iF10234E865CCBB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GunjanKiratkar_1-1670836338295.png" alt="GunjanKiratkar_1-1670836338295.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:12:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2411927#M146</guid>
      <dc:creator>Gunjan Kiratkar</dc:creator>
      <dc:date>2022-12-12T09:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2413919#M155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/450144"&gt;@edwardwong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please mark my response as correct if it resolves your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:08:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2413919#M155</guid>
      <dc:creator>Gunjan Kiratkar</dc:creator>
      <dc:date>2022-12-13T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2414091#M156</link>
      <description>&lt;P&gt;You can add users from group to watchlist.&lt;/P&gt;&lt;P&gt;You have to extract users from group and add into watchlist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You cannot set watchlist value as group&lt;/STRONG&gt; and it will take all users automatically&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 14:57:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2414091#M156</guid>
      <dc:creator>SuhasPSalunkhe</dc:creator>
      <dc:date>2022-12-13T14:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2414092#M157</link>
      <description>&lt;P&gt;I trying to see why it not working and, i been getting this&amp;nbsp;&lt;SPAN&gt;[PA AppSec] Daily Data Collection completed with error. Why is this happening?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 14:58:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2414092#M157</guid>
      <dc:creator>edwardwong</dc:creator>
      <dc:date>2022-12-13T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2508160#M268</link>
      <description>&lt;P&gt;member name not seen in watchlist on sys_id of member get&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:47:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2508160#M268</guid>
      <dc:creator>shubhama</dc:creator>
      <dc:date>2023-03-16T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2508172#M269</link>
      <description>&lt;P&gt;only reflect sys_id of user i want name of that user how can achive&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:52:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/2508172#M269</guid>
      <dc:creator>shubhama</dc:creator>
      <dc:date>2023-03-16T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: autopopulate assignment group member into the watchlist</title>
      <link>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/3498627#M1537</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.servicenow.com/community/user/viewprofilepage/user-id/450144" target="_blank"&gt;@edwardwong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try below solution using after Business rule :&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Set condition for Insert/Update &amp;amp; Assignment Group is not empty&lt;/P&gt;&lt;P&gt;2. Script :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; executeRule(current, previous &lt;/SPAN&gt;&lt;SPAN&gt;/*null when async*/&lt;/SPAN&gt;&lt;SPAN&gt; ) { &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; users = []; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (current.watch_list == &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; grMember = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_user_grmember'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grMember.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'group'&lt;/SPAN&gt;&lt;SPAN&gt;,current.assignment_group);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grMember.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(grMember.next()) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; users.push(grMember.getValue(&lt;/SPAN&gt;&lt;SPAN&gt;'user'&lt;/SPAN&gt;&lt;SPAN&gt;)); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.setValue(&lt;/SPAN&gt;&lt;SPAN&gt;'watch_list'&lt;/SPAN&gt;&lt;SPAN&gt;,users.join(&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.update();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})(current, previous);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mark my answer correct and helpful if it helped.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 11:19:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/guided-learning-itsm/autopopulate-assignment-group-member-into-the-watchlist/m-p/3498627#M1537</guid>
      <dc:creator>avinash71</dc:creator>
      <dc:date>2026-02-27T11:19:06Z</dc:date>
    </item>
  </channel>
</rss>

