Change related list in in incident form when records have the same parent

Alex D Great
Tera Contributor

Hello All,

I have a requirement when change is created from incident it should be shown under "change request" related list. Both the incident and change request will have the same parent, which is case. 

Any idea how to do this?

1 ACCEPTED SOLUTION

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Alex D Great 

 

As you have additional condition, I would suggest you to create new Related list for it.

 

1. Navigate to System Definition > Relationship.

2. Create new record with Name = Change Request, Applies to Table = Incident, Queries from table = Change Request.

3. Query with script as below:

 

current.addQuery('sys_id', parent.rfc);
current.addQuery('parent',parent.parent);
current.addEncodedQuery("parent.numberSTARTSWITHCS");

 

4. From Incident form, configure this new Related List and add on the form.

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

6 REPLIES 6

Hi Anubhav,

Hope's all good.

I have seen your solution for Alex query. I have the same requirement, but they don't want us to create new Related List with name Change Request.

Already OOB available Related List with the name Change Requests on Incident Form.

AbhilashaGT_0-1741272964766.png

When I create a change from the context menu, and the change is reflected in the Related records tab.

how to achieve this.

 

Regards,

Abhilasha G T

Right, I Have same requirement