<?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: Subject Person - Populate on short description in HRSD forum</title>
    <link>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330360#M20632</link>
    <description>&lt;P&gt;Hey Ankur,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar kind of issue. I want to update the short descriptions for all HR template(This HR template are then used for creating HR task) so that it shows name of opened for person (Task is opened for). Can you please help me regarding this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 10:11:31 GMT</pubDate>
    <dc:creator>Rohit54</dc:creator>
    <dc:date>2021-07-27T10:11:31Z</dc:date>
    <item>
      <title>Subject Person - Populate on short description</title>
      <link>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330358#M20630</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;We raise a HR Life Cycle Case from UI page we would like to get the Subject Person on the short description,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;1) On Submit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;2) On Change&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;once the parent case subject person is change all the child cases &amp;amp; task will have also changed&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:31:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330358#M20630</guid>
      <dc:creator>Vamsi Paidi</dc:creator>
      <dc:date>2020-09-17T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subject Person - Populate on short description</title>
      <link>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330359#M20631</link>
      <description>&lt;P&gt;Hi Vamsi,&lt;/P&gt;
&lt;P&gt;For setting the short description you can use before insert BR on LE Case table&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;current.short_description = 'Subject Person is ' + current.subject_person.getDisplayValue();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For updating the child cases and tasks once parent case subject person is changed use the business rule&lt;/P&gt;
&lt;P&gt;BR: After update on HR LE Case table&lt;/P&gt;
&lt;P&gt;Condition: subject person changes&lt;/P&gt;
&lt;P&gt;Script&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var child = new GlideRecord('sn_hr_core_case');

child.addQuery('parent', current.sys_id);

child.query();

while(child.next()){

child.subject_person = current.subject_person;

child.update();

}

var childTask = new GlideRecord('sn_hr_core_task');

childTask.addQuery('parent', current.sys_id);

childTask.query();

while(childTask.next()){

childTask.subject_person = current.subject_person;

childTask.update();

}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:40:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330359#M20631</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-09-17T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subject Person - Populate on short description</title>
      <link>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330360#M20632</link>
      <description>&lt;P&gt;Hey Ankur,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar kind of issue. I want to update the short descriptions for all HR template(This HR template are then used for creating HR task) so that it shows name of opened for person (Task is opened for). Can you please help me regarding this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:11:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/subject-person-populate-on-short-description/m-p/1330360#M20632</guid>
      <dc:creator>Rohit54</dc:creator>
      <dc:date>2021-07-27T10:11:31Z</dc:date>
    </item>
  </channel>
</rss>

