Changing the (cab automation) meeting notes?

Not applicable

By default, the auto-generated meeting notes look like the following:

(CAB Automation) - CHG00123456 - Approved - John Smith - 12:31:12 - US/Eastern

We would like to change them to something like:

(CAB Automation) - CHG0030216 - Assignment Group - Risk -  Change Short Description - Approved - Approver - 12:31:12 - US/Eastern

However, I cannot for the life of me find where this automation takes place.   Has anyone worked with this previously?

Thank you!

1 ACCEPTED SOLUTION

Not applicable

Naveen.. thank you for helping with this 🙂 

Here's what I ended up with, and it did exactly what I need:

updateAgendaDecisions: function(agr, prevGr) {

var decision = '';
if(agr.state == CAB.AGENDA_STATE.NO_DECISION) {
decision = agr.state.getDisplayValue();
}else if((agr.decision != prevGr.decision) && (agr.decision == CAB.AGENDA_DECISION.APPROVED || agr.decision == CAB.AGENDA_DECISION.REJECTED)) {
decision = agr.decision.getDisplayValue();
}else
return;
var session = gs.getSession();
var gdt = new GlideDateTime();
var str = gs.getMessage("(CAB Automation) - {0} - {1} - {2} - {3} - {4} - {5} - {6} - {7}", [agr.task.getDisplayValue(), agr.task.assignment_group.getDisplayValue(), agr.task.risk.getDisplayValue(), agr.task.short_description, decision, gs.getUserDisplayName(), gdt.getUserFormattedLocalTime(), session.getTimeZoneName()]); var autoText = "<p>" + str + "</p>";
this._gr.agenda_decisions_buffer = this._gr.agenda_decisions_buffer + "" + autoText;
this._gr.update();
}

View solution in original post

13 REPLIES 13

Ian22
Tera Contributor

so how do you change CABAgendaItemSNC as it is read-only based on its protection policy.

So I assume you have to take a copy?

Daniel Peel
Mega Sage

*** I realize this is old... but since I don't see mention of it and the date on the Script Include predates this question... and I went looking for how to find what was creating the notes.  

There is a customization point script include called CABAgendaItem you can recreate that method in and modify as you need.  Your method will override the one in the SNC version.  This is how MANY script includes OOB are constructed, not all but many.

Eric_Koops
Tera Contributor

I like the answers in this post. But question I have why do we have a easy way to make nice invites to the CAB meeting but the get somehow the same look and feel for the meeting Notes you have to somehow correct a Read Only file... is there any change that there is a idea and or demand created for this question to get in my Opinium correctly setup in ServiceNow.

 

You don't need to change a read-only file at all, and you can't as far as I know.  There is a SI extended from the read only, that is intended to override the functionality within the original.