Action Taken quick view on Major Incident Workbench

Angie Koester
Tera Contributor

We started using Major Incident Workbench to manage our major incidents.   I would like to see a quick summary of Actions Taken during the major incident.   Is it possible to view only the actions taken or is it possible on the Post Incident Report to break out that section from the activity log for a quick view of the actions taken?   

I'm looking for the date/time stamp and the notes in the Action Taken notes. 

Thank you in advance for you help!

 

2 REPLIES 2

Community Alums
Not applicable

I don't think you can edit the workbench at all. You can use the filter on the activity list to show just actions taken. 

find_real_file.png

 

I had a similar requirement, and the only way I found to do it quickly was in the email with the following script

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
	var activities = current.incident_alert.source_incident.actions_taken.getJournalEntry(-1);
	var firstUpdateContent = current.incident_alert.source_incident.description;
	var firstUpdateTime = current.sys_created_on.getDisplayValue();
	var firstUpdatePerson = current.incident_alert.opened_by.getDisplayValue();
	var pattern2 = /^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/;
		var parsedTime = firstUpdateTime.replace(pattern2,"$1 - $2");
		var activityArray = activities.split("\n\n");
		template.print("<br/>");
		for(var i = 0; i < activityArray.length; i++) {
			var arrayEntryBefore = activityArray[i];
			var pattern = /(^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2} ... - \w*.\w*.)................(.*)/;
				var parsedText = arrayEntryBefore.replace(pattern,"$1 - $2");  
			    parsedText = parsedText.replace('\n','');
				if(i===activityArray.length-1){
					template.print(parsedText.trim());}
					else{
						template.print(parsedText.trim()+"<br/><br/>");}
					}
					template.print(firstUpdateTime + " - " + firstUpdatePerson + " - " + firstUpdateContent + "<br/><br/>");

				})(current, template, email, email_action, event);

Thank you Mike for the response!   I'm not sure why I always forget the filter on the activity listing.  

I will check out the script and see if it helps us.