How to remove Work note copied from Parent Incident from child incident work notes.

JanhaviP
Tera Contributor

JanhaviP_0-1715323687838.png

I want only work note not "Work note copied from Parent Incident " this text. please suggest how to do this?

I wrote business rule and its working properly but I don't need that text.

4 REPLIES 4

Sujatha V M
Kilo Patron
Kilo Patron

@JanhaviP  The message "Work note copied from Parent Incident" is coming from the OOB Business rule "Update Child Incidents". 

 

In Business rule list, search as "Script contains Work note copied from Parent Incident" as below and set the BR to "false".

 

SujathaVM_0-1715582917448.png

 

SujathaVM_1-1715583141979.png

 

Note: Analyze the OOB BR, before inactivating it. Create custom business rule if really required to meet your needs. 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

 

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Janhavi Pawar1
Tera Contributor

@Sujatha V M  Thank you for your response. 

I wrote below mentioned BR for this requirement. still its not working. can you please check?

 

JanhaviPawar1_0-1715666278150.png

 

@JanhaviP @Janhavi Pawar1  I assume you want the Incident work notes to be cascaded to child work notes, please try the below,

 

Table : Incident
After : Update
Condition : Work notes changes

 

var gr = new GlideRecord('incident');
gr.addQuery('parent_incident', current.sys_id);
gr.query();
while(gr.next()){
gr.work_notes = current.work_notes.getJournalEntry(1);
gr.update();
}

 

 

Results :

Parent Incident :

SujathaVM_0-1715667895777.png 

 

SujathaVM_2-1715668058444.png

Related records (child incident) :

 

SujathaVM_1-1715667929338.png

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Please “Accept” it as a solution and mark this as helpful if this resolves your query.

Thanks,

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.