How do we update contents of the CAB Meeting Notes?

SusanWinKY
Kilo Sage

We're using the CAB Workbench and sending out Meeting Notes after the meeting is complete.  We've received a request to update the content of the Meeting Notes to include some additional information.  I've checked and am not able to find where the data is written to the Meeting Notes.  Can someone point me in the right direction?  Thanks!


Susan Williams, Lexmark
1 ACCEPTED SOLUTION

So they changed where it is, to now be "CABAgendaItemSNC, and the function is now "addDecisionToMeetingNotes," in that script include.

Here is what mine is, now that I have it working again:

var CABAgendaItem = Class.create();

CABAgendaItem.TASK_FIELDS_FOR_ATTENDEES = ["assigned_to", "cab_delegate"];

CABAgendaItem.prototype = Object.extendsObject(sn_change_cab.CABAgendaItemSNC, {
// Added from here
addDecisionToMeetingNotes: function() {
var decision = this._gr.state +"" === CAB.AGENDA_STATE.NO_DECISION ?
this._gr.getDisplayValue("state") : this._gr.getDisplayValue("decision");

var message = "<p>" +
gs.getMessage("(CAB Automation) - {0} - Start Time: {1} - {2} - Risk: {3} - {4} - {5} - {6} - {7} - {8}", [this._gr.task.getDisplayValue(),this._gr.task.start_date.getDisplayValue(), this._gr.task.assignment_group.getDisplayValue(), this._gr.task.risk.getDisplayValue(), this._gr.task.short_description, decision, this._gs.getUserDisplayName(),new GlideDateTime().getUserFormattedLocalTime(),this._gs.getSession().getTimeZoneName()]);+
"</p>";

var meetingGr = this._gr.cab_meeting.getRefRecord();
meetingGr.meeting_notes = meetingGr.meeting_notes.nil() ? message : meetingGr.getDisplayValue("meeting_notes") + message;
meetingGr.update();
},
// To here
type: 'CABAgendaItem'
});

// Bindings for namespaced code
CABAgendaItem.newAgendaItem = CABAgendaItemSNC.newAgendaItem;

 

View solution in original post

12 REPLIES 12

So they changed where it is, to now be "CABAgendaItemSNC, and the function is now "addDecisionToMeetingNotes," in that script include.

Here is what mine is, now that I have it working again:

var CABAgendaItem = Class.create();

CABAgendaItem.TASK_FIELDS_FOR_ATTENDEES = ["assigned_to", "cab_delegate"];

CABAgendaItem.prototype = Object.extendsObject(sn_change_cab.CABAgendaItemSNC, {
// Added from here
addDecisionToMeetingNotes: function() {
var decision = this._gr.state +"" === CAB.AGENDA_STATE.NO_DECISION ?
this._gr.getDisplayValue("state") : this._gr.getDisplayValue("decision");

var message = "<p>" +
gs.getMessage("(CAB Automation) - {0} - Start Time: {1} - {2} - Risk: {3} - {4} - {5} - {6} - {7} - {8}", [this._gr.task.getDisplayValue(),this._gr.task.start_date.getDisplayValue(), this._gr.task.assignment_group.getDisplayValue(), this._gr.task.risk.getDisplayValue(), this._gr.task.short_description, decision, this._gs.getUserDisplayName(),new GlideDateTime().getUserFormattedLocalTime(),this._gs.getSession().getTimeZoneName()]);+
"</p>";

var meetingGr = this._gr.cab_meeting.getRefRecord();
meetingGr.meeting_notes = meetingGr.meeting_notes.nil() ? message : meetingGr.getDisplayValue("meeting_notes") + message;
meetingGr.update();
},
// To here
type: 'CABAgendaItem'
});

// Bindings for namespaced code
CABAgendaItem.newAgendaItem = CABAgendaItemSNC.newAgendaItem;

 

Shawn, thanks for the update. We also updated the CABAgendaItem script include to customize the content of our Meeting Notes.  Here's ours:

var CABAgendaItem = Class.create();

CABAgendaItem.TASK_FIELDS_FOR_ATTENDEES = ["assigned_to", "cab_delegate"];

CABAgendaItem.prototype = Object.extendsObject(sn_change_cab.CABAgendaItemSNC, {

	// Start added from here (20200413: swhite after NY Patch 7)
	addDecisionToMeetingNotes: function() {
		var decision = this._gr.state +"" === CAB.AGENDA_STATE.NO_DECISION ?
			this._gr.getDisplayValue("state") : this._gr.getDisplayValue("decision");
	
		var linkToChangeRequest = "<a href='change_request.do?sys_id=" + this._gr.task + "' target='_blank'>" + this._gr.task.getDisplayValue() + "</a>";

		var message = "<p>" +
			gs.getMessage("(CAB Automation) - {0} - {1} - {2} - {3} - {4} - {5} - {6}", [
				linkToChangeRequest, 
				this._gr.task.short_description,
				this._gr.task.assignment_group.getDisplayValue(), 
				decision,
				this._gs.getUserDisplayName(),
				new GlideDateTime().getUserFormattedLocalTime(),
				this._gs.getSession().getTimeZoneName()
			]) +
			"</p>";
		
		var meetingGr = this._gr.cab_meeting.getRefRecord();
		meetingGr.meeting_notes = meetingGr.meeting_notes.nil() ? message : meetingGr.getDisplayValue("meeting_notes") + message;
		meetingGr.update();
	},
	// End added (20200413: swhite after NY Patch 7)
	
    type: 'CABAgendaItem'
});

// Bindings for namespaced code
CABAgendaItem.newAgendaItem = CABAgendaItemSNC.newAgendaItem;

Susan Williams, Lexmark

rp11
Tera Expert

Hi,

When approving or rejecting a Change in the CAB Workbench, there is a message box that comes up that comments can be added too. Any way I can write the comments from the approval into the meeting notes?

Thanks