Customize Post Incident Review Report Major Incident Management

Mallidi Suma
Tera Guru

Have you ever got a requirement to customize the Post Incident Review Report before downloading it in Major Incident Management? 

I got it. Here we go !!!!

Usually when we are dealing with a major incident, we end up creating many Incident Tasks. Also, we tag the major incident as a parent incident to many child incidents. The Out of the Box Post Incident Review Report of Major Incident is not auto-populating Child Incidents and Incident Tasks. We created a custom UI page and added these 2 lists in the Details section of the PIR Report Major Incident Management.

 

Follow the below steps to customize the PIR Report:-

Step 1:- Copy the existing post_incident_report_pdf UI page in the Major Incident Management Application.

MallidiSuma_0-1683483371023.png

 

Step 2:- Paste the below code in the HTML of the UI Page as per the Screenshot:-

MallidiSuma_1-1683483381685.png

Script:-

<div class="related-list">
<g:macro_invoke macro="sn_major_inc_mgmt_pir_report_related_list_table" table="incident_task" title="${gs.getMessage('Incident Tasks')}" query="incident=${jvar_sysparm_sys_id}" columns="number,state,assignment_group,assigned_to,short_description" />
</div>
<div class="related-list">
<g:macro_invoke macro="sn_major_inc_mgmt_pir_report_related_list_table" table="incident" title="${gs.getMessage('Child Incidents')}" query="parent_incident=${jvar_sysparm_sys_id}" columns="number,state,assignment_group,assigned_to,short_description" />
</div>

Step 3:- Copy the EndPoint of your custom UI page.

Step 4:- Open Major Incident Properties and paste the above-Copied URL in the "PIR export ui page url" Property as per the screenshot below.

MallidiSuma_2-1683483680016.png

It will render as below:-

MallidiSuma_4-1683484470496.png

 

Please mark it as helpful, if it helps you !!

 

6 REPLIES 6

Sai Mahesh
Tera Contributor

Very useful...!!!

Vedhavrath_Kond
Tera Guru

Good Stuff....Thanks for sharing

Thota Naga Jyo1
Tera Contributor

Good one. Thank you suma

pratiksha5
Mega Sage

Informative. Thanks for sharing.