Copy work notes from security incident response task to security incident

Littbarski1
Tera Expert

Hi

I am working on a request to modify how the work notes are copied from the response task to the Security Incident. We want to include the Short Description from the response task in the work notes.

 

I see that this is configured in the SIR administration page with this option - "Copy task work notes to request". I can see the settings in the sm_config table, but I am not able to see any business rules on the security incident or security incident task tables that should be updating the work notes on the SIR record.

 

What is the OOB component responsible for copying the work notes from the task record?

2 ACCEPTED SOLUTIONS

Martin Dewit
Kilo Sage

I found the business rule on the sm_task table, "ValidateChanges". Starting at Line 54 on Line 58 you could make the below changes:

 

    function RollUpWorkNotes(current) {
        if (current.parent) {
            var parent = new GlideRecord('sm_order');
            if (parent.get(current.parent)) {
                parent.work_notes = current.short_description + ": " + current.work_notes;
                parent.update();
            }
        }
    }

 

MartinDewit_0-1702645963840.png

 

 

 

View solution in original post

Thanks a lot @Martin Dewit for pointing me in the right direction, I was looking in the SIR scope. This worked perfectly for me.

View solution in original post

3 REPLIES 3

Martin Dewit
Kilo Sage

I found the business rule on the sm_task table, "ValidateChanges". Starting at Line 54 on Line 58 you could make the below changes:

 

    function RollUpWorkNotes(current) {
        if (current.parent) {
            var parent = new GlideRecord('sm_order');
            if (parent.get(current.parent)) {
                parent.work_notes = current.short_description + ": " + current.work_notes;
                parent.update();
            }
        }
    }

 

MartinDewit_0-1702645963840.png

 

 

 

Thanks a lot @Martin Dewit for pointing me in the right direction, I was looking in the SIR scope. This worked perfectly for me.

mohammad karimi
Tera Contributor

There is an out-of-the-box solution that you can use.

 

1. Navigate to All > Security Incident > Administration > Configuration.

2. Enable the option "Copy task work notes to request."

 

Screenshot 2024-10-25 at 11.53.42.png