In ServiceNow, the display of "Additional Comments" and "Work Notes" (or similar fields) within various parts of the application, such as on Request Item (RITM) or Catalog Tasks (SCTASK), is controlled through the Activity Formatter. The Activity Formatter settings determine what is shown in the "Activity" section of a form, including which fields are included and how they are displayed. However, customizing what appears there, especially making distinctions between what's shown for an RITM versus an SCTASK, might require a bit of work.
Here's a general idea of what you should look into for displaying "Additional Comments" from a Catalog Task under the "My Requests" > "Activity" of a Request Item:
Understanding "Activity" Configuration
-
Activity Formatter: The Activity Formatter is configured on the form layout. By default, it shows activities from both "Additional Comments" (comments) and "Work Notes" (work_notes) among others. You can check this by going into form design or layout settings of the RITM form.
-
List Collector for Activities: For some tables, what is included in the activity stream can be controlled by a list collector variable in the system properties. However, this usually does not control the granularity of showing RITM comments specifically or differentiating between RITM and SCTASK activities directly.
Custom Approach to Include SCTASK Comments in RITM Activity
If SCTASK "Additional Comments" are not displaying by default under the related RITM's "Activity" tab, you might consider a custom solution. One approach is to use Business Rules or Flow Designer to synchronize comments:
-
Business Rules or Flow Designer: You could create a business rule or a flow that copies or syncs "Additional Comments" from SCTASK to the related RITM. This could be a simple copy action whenever an update is made to a SCTASK, though you'll want to clearly indicate these are comments coming from associated tasks to avoid confusion.
- Make sure this rule triggers on
insert and update actions of the SCTASK table.
- In the script, check if the comment field has been changed. If so, copy (or append) the comment to the parent RITM's comment field, possibly with a prefix like
[Task Comment] to denote the source.
This isn't exactly showing SCTASK comments in the RITM "Activity" tab directly from the SCTASK itself but rather duplicating those comments to the RITM record, where they then naturally appear in the RITM's activity stream. This method is somewhat brute-force and might not be perfect for all scenarios, especially if there are many comments or if duplication is a concern.
Caution and Consideration
- User Experience: Ensure that this approach aligns with your user expectations and doesn't clutter the activity stream with redundant information.
- Performance: Consider the impact on performance, particularly if you have a high volume of comments and tasks.
- Maintenance: Custom solutions require maintenance. Any upgrade or significant change in the ServiceNow platform might necessitate revisiting custom scripts or rules.
If direct display (without duplication) of SCTASK comments in an RITM's "Activity" stream is critical, it might be worth reaching out to ServiceNow's community forums or support services to explore if there are newer features or third-party solutions that might meet your needs more directly, especially as ServiceNow continues to evolve.