Change the PIR shown in Service Operations Workspace

spike
Mega Sage

Does anyone know how you can edit the PIR that is displayed in the Service Operations Workspace when a Major Incident is resolved. It's obviously different from the one shown in the Major Incident Workbench. We'd like to add additional sections to it but I can't find anywhere I can edit it.

Any help would be appreciated!

1 ACCEPTED SOLUTION

spike
Mega Sage

I found the answer to this..  there's a table called "sn_sow_inc_post_incident_report" that seems to get populated at some stage in the process - I'm assuming when a major incident is resolved. Then when you update the PIR it's this table that is updated. If you update the incident, then the snapshot taken into sn_sow_inc_post_incident_report isn't updated.

View solution in original post

3 REPLIES 3

spike
Mega Sage

I found the answer to this..  there's a table called "sn_sow_inc_post_incident_report" that seems to get populated at some stage in the process - I'm assuming when a major incident is resolved. Then when you update the PIR it's this table that is updated. If you update the incident, then the snapshot taken into sn_sow_inc_post_incident_report isn't updated.

luishuallpa
Giga Contributor

Hi @spike , were you able to update the PIR? We're also looking for that configuration.

I did. I ended up adding a refresh button to a new variant of the PIR form in the SOW.

 

In the page collection called "SOW - Record tabs right" there's page called "Post Incident Report SNC". I created a new variant of this. On this I added a button called "Refresh Summary". That in turn calls a data resource that ultimately calls this:

function transform(input) {
    var sysId = input.sysId;

	var postIncidentReportManager = new PIRManager();
	var permissions = postIncidentReportManager.getPermissionsForUser(sysId);
	if (!permissions.canEditSummary) {
		return new Error("User doesn't have permissions to edit the summary");
	}

    var output = {
        "message": "",
        "status": 200
    };

	var summary = new PostMajorIncidentSummary();
	summary.syncIncidentSummary(sysId);

    return output;
}

 Hope this helps.