What triggers the Activities when RITM close?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello All,
When all scTask closes, it automatically closes the RITM and set the "closed" and "closed_by" value on work note Activities on RITM. As shown in below pic.
While in some of the RITM, it only shows 'state' and 'stage'. Due to this issue, Closed_by and Closed field on RITM shows empty. Can someone tell from where these value is coming from on Activities on RITM? If it comes workflow then I found it closes the last scTask and end the workflow? Not sure if I am missing anything in workflow. Or if scTask closes which triggers any BR to close RITM as well!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi my Friend
This is actually normal OOB behavior, and the difference you’re seeing comes down to how the RITM is being closed.
When the last scTask closes, ServiceNow evaluates the RITM and updates its state/stage. The Activities stream only shows Closed and Closed by if those fields are explicitly set on the RITM record. If they aren’t set, they wont appear.
So in the cases where you only see state and stage, the RITM was closed by logic flow/workflow/BR that did not populate closed and closed_bywhich is common with some Flow Designer implementations or custom logic.
scTask itself does not write those fields. Something else must do it.
The fix is to make sure whatever logic closes the RITM Flow or BR also sets closed and closed_by consistently.
@Dk nov - Please mark as Accepted Solution and Thumbs Up if you found Helpful!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Dk nov ,
there is business rule on the task table :
this business rule calling the script include :
open script include defination
this updating your work notes:
also you can check with script debugger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Dk nov ,
Please check the solution below:
- Condition: This BR runs when a record's active field changes from true to false.
- Action: It automatically sets the closed_at (Closed) and closed_by fields to the current date/time and the current user.
- Custom Automation: A Workflow or Flow Designer action might be setting the state to "Closed Complete" manually but forgetting to set active = false.
- Inactive OOTB Rules: In some instances, the Business Rules "Set Active Flag After Workflows" or "Set Closure Fields" may be deactivated or customized, preventing the automatic toggle of the active flag when the workflow ends.
- Task Closer BR Issues: The Out-of-the-Box Business Rule "task closer" (sys_id: 475ef3c5c611228401440a7a5f29a786) is responsible for closing the RITM once all sc_task records are finished. If this rule has been modified, it may fail to trigger the subsequent "Active = false" logic.
- Workflow/Flow: When the final task closes, the workflow should reach an "End" node or a "Set Value" activity that sets the Stage to "Completed" and the State to "Closed Complete".
- Verification: To fix the empty fields, ensure your workflow/flow explicitly updates the RITM to an inactive state or verify that the "Set Active Flag After Workflows" Business Rule is active to handle this automatically when the workflow completes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Dk nov _ Hello my Friend - Hopefully my solution worked for you?
