---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Use Template Scripts in your Report Templates

# Use Template Scripts in your Report Templates {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Create a script to include the related lists data, date operations, and any other data that aren't directly dot-walkable.

## Before you begin

Role required: sn_msi.workspace_manager

## About this task

You can use this predefined template script in your report templates to include any related data after the report templates are configured and customized.

Construct a template script to display the related list data on the report template. If you want to utilize and populate any template script, then you must add the tag template script tag as: <kbd class="ph userinput">${template_script:script name}</kbd>.  
Example: <kbd class="ph userinput">${template_script:msi_collab_cards}</kbd>  
Note:  
You can't delete the predefined template scripts. An error message is displayed if a user with an admin role attempts to delete a template script record if it's mapped with any report template.

## Procedure

1. Navigate to Major Security Incident ManagementMSI AdministrationStatus Report Setup.  
   The MSI Status Report Setup page displays.
2. Drill down to Report TemplateTemplate Scripts.
3. Select Configure.  
   The following are the predefined Template Scripts as a part of the base system, which you can use to configure and modify your status reports.

   | Template Script name | Description |
   | formatted_current_date | Returns the current local date and time in the DDMMYYYY 00.00 AM or p.m. format. For example, 21 Jan 2021 3:51 p.m. PST. |
   | msi_active_team | Generate HTML for active team cards. |
   | msi_collab_cards | Generate HTML for collaboration activity cards. |
   | msi_task_activities | Generate HTML for task cards. |
   | msi_timeline_events | Generate HTML for timeline event cards. |
   | si_affected_users | Returns the affected users from the related list in a tabular form. |
   | si_assessments | Returns the post incident assessment results in a tabular form. |
   | si_associated_phish_emails | Returns the associated phishing emails from the related list in a tabular form. |
   | si_associated_phish_headers | Returns the associated phishing headers from the related list in a tabular form. |
   | si_business_criticality | Returns color-coded business criticality value. |
   | si_malicious_observables | Returns the malicious observables from the related list in a tabular form. |
   | si_observables | Returns the observables from the related list in a tabular form. |
   | si_priority | Returns a color-coded priority value. |
   | si_response_tasks | Returns the response tasks from the related list in a tabular form. |
   | si_time_to_identify | Returns the duration spent in the Draft and Analysis state. |
   | si_time_to_resolve | Returns the time to resolve the incident. |
   |-|-|

   {#using-template-scripts-in-your-report-templates__choicetable_lj2_1rr_d1c}  
   Note:  
   You can also create your own template script to include the related lists data, date operations, and any other data that aren't directly dot-walkable, in addition to the listed template scripts.

*[\>]: and then


