Need to see the created Change in the work notes section

Abhilasha G T
Tera Contributor

Hi Team ,

In the incident form, i want see the created Change records in the work notes section.

 

How to achieve this.

 

Regards,

Abhilasha G T

15 REPLIES 15

Rohit  Singh
Mega Sage

Hi @Abhilasha G T ,

 

Please explain the use case from beginning. 
Do you want when the change request is tagged with any incident. Then in the work notes of incident you want that Change Request to be posted?

 

Regards, 

Rohit

Hi Rohit,

I want to see the related change request in the activity logs,

AbhilashaGT_0-1741258626178.png

AbhilashaGT_1-1741258655258.png

Regards,

Abhilasha G T

 

Hi @Abhilasha G T ,

 

You can create a After BR in your Change Request.

 

Condition would be Parent Changes    [ Record Inserted or Changes]

 

 

var gr_inc = new GlideRecord("incident");
gr_inc.addQuery("sys_id",current.parent);     /// Parent is the field in the change request where you add Incident Record
gr_inc.query();
while(gr_inc.next())
{
gr_inc.work_notes = current.number;   /// Change Number will be posted in work_notes of INC which is assigned as parent in change request.
gr_inc.update();
}

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

 

Hi Rohit,

Thanks for your reply,

I have added /configured the change request field on the Filter Activity in the notes tab.

Regards,

Abhilasha G T