Management Summary field over Incident table

Ballela Siva Te
Tera Contributor

Hi Friends,

 

We have encountered an issue with a custom field in ServiceNow incident table. The field name is management summery (u_management_summary).

 

This is a HTML field, at start this field worked fine but later on an update we had the issue. What ever the information is updated in management Summary the same information will be appearing in notes.

 

The notes is not displaying the proper format of data, it is displaying the format in HTML. Please see below

Actual field Management Summary :

 

BallelaSivaTe_0-1712738512332.png

notes - Activity Management Summary : 

BallelaSivaTe_1-1712738548764.png

 

How can we identify and rectify the changes

 

Regards,

Siva Teja B

1 REPLY 1

Mark Manders
Mega Patron

Why would you want the summary to also be visible in the notes? 

But check your business rule that copies it to the notes. Does it look like this?

 

(function executeRule(current, previous /*null when async*/) {
     if (current.management_summary.nil() || current.management_summary.changes()) {
         var summaryText = new GlideHTMLField(current, 'management_summary').getDisplayValue();
         current.comments = "Management Summary Update: " + summaryText + "\n\n" + current.comments;
    }
})(current, previous);

Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark