<?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: Business Rule is not triggering on Task Time Worked table in CSM forum</title>
    <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460799#M45970</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp; -Did you verify the Task Sys ID against the actual Sys ID of the case record? It’s possible the code is not entering the if loop due to a mismatch.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2026 18:19:08 GMT</pubDate>
    <dc:creator>VenkataSaiJ0281</dc:creator>
    <dc:date>2026-01-05T18:19:08Z</dc:date>
    <item>
      <title>Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460506#M45959</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're working in a domain separation environment. I have a requirement to automatically update "Case Time Worked" custom field on Case (sn_customerservice_case) table when "Time worked" field is updated on Task Time Worked (task_time_worked) table.&amp;nbsp; We created a Business Rule&amp;nbsp; and tested. We can't see logs and it's even not triggering when debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Business Rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table: task_time_worked&lt;/P&gt;&lt;P&gt;When to run: After Update&lt;/P&gt;&lt;P&gt;Condition: Time Worked | Changes&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; taskSysId = current.task;&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;&amp;nbsp;caseRecord = &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;'sn_customerservice_case'&lt;/SPAN&gt;&lt;SPAN&gt;);&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; (caseRecord.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(taskSysId)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; caseRecord.u_time_worked = current.time_worked;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; caseRecord.update();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Could you please assist on what additional steps to take on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:38:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460506#M45959</guid>
      <dc:creator>Koti Majji</dc:creator>
      <dc:date>2026-01-05T13:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460509#M45960</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you didn't share the BR script and config screenshots&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:28:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460509#M45960</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-05T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460519#M45961</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;: Hi Ankur, thank you for the reply. Updated my post with BR. Kindly look into it. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:42:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460519#M45961</guid>
      <dc:creator>Koti Majji</dc:creator>
      <dc:date>2026-01-05T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460526#M45962</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;u_time_worked field should be of type Duration then it will work&lt;/P&gt;
&lt;P&gt;did you debug and see it went inside that IF?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:47:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460526#M45962</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-05T13:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460528#M45963</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. Yes, we used duration type only. However, it's not working. When we're doing update in background, it's working. When it comes to Business Rule, it's not triggering. Please suggest what can be done. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:52:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460528#M45963</guid>
      <dc:creator>Koti Majji</dc:creator>
      <dc:date>2026-01-05T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460532#M45964</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what debugging did you do?&lt;/P&gt;
&lt;P&gt;Is the BR actually triggering?&lt;/P&gt;
&lt;P&gt;Is it going inside that IF statement?&lt;/P&gt;
&lt;P&gt;try this line&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; caseRecord.u_time_worked.setDateNumericValue(current.time_worked.dateNumericValue());&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; If my response helped, please mark it as correct &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and close the thread &lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;— this helps future readers find the solution faster! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 13:57:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460532#M45964</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-05T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460555#M45965</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Added logs using gs.info() at start and inside If.&lt;/P&gt;&lt;P&gt;2. Added info messages&amp;nbsp;at start and inside If.&lt;/P&gt;&lt;P&gt;3. Debug Business Rule - Session Log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any message, log information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if anything I need to check.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 14:22:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460555#M45965</guid>
      <dc:creator>Koti Majji</dc:creator>
      <dc:date>2026-01-05T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460567#M45966</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it means BR is not triggering, something wrong in condition&lt;/P&gt;
&lt;P&gt;share BR config screenshots&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 14:33:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460567#M45966</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-05T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460573#M45967</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;&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="KotiMajji_0-1767623838831.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/493926iA1ED58C1393C833D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KotiMajji_0-1767623838831.png" alt="KotiMajji_0-1767623838831.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KotiMajji_1-1767623984284.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/493927i62E7E87AE7C6FDCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KotiMajji_1-1767623984284.png" alt="KotiMajji_1-1767623984284.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 14:40:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460573#M45967</guid>
      <dc:creator>Koti Majji</dc:creator>
      <dc:date>2026-01-05T14:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460591#M45968</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;looks fine to me&lt;/P&gt;
&lt;P&gt;Did the field get changed so that BR triggers?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 14:59:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460591#M45968</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-01-05T14:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Business Rule is not triggering on Task Time Worked table</title>
      <link>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460799#M45970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/261845"&gt;@Koti Majji&lt;/a&gt;&amp;nbsp; -Did you verify the Task Sys ID against the actual Sys ID of the case record? It’s possible the code is not entering the if loop due to a mismatch.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 18:19:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/csm-forum/business-rule-is-not-triggering-on-task-time-worked-table/m-p/3460799#M45970</guid>
      <dc:creator>VenkataSaiJ0281</dc:creator>
      <dc:date>2026-01-05T18:19:08Z</dc:date>
    </item>
  </channel>
</rss>

