How to configure case -> Incident Related Lists in Servicenow

jnfjn
Tera Contributor

When an incident is created from case table [ case table -> Form Menu -> create incident] (refer screenshot 1), then this case is added to Incident form [under Related Lists ->  cases] (Refer screenshot2)----- This cases Related List is ootb available in [configure - Related List(slush bucket).

In the same way the incident also should be added under case form Related List. As ootb not available, I configured it in Relationship. what should be the query code to acheive this?(Refer screenshot3). 

And also please let me know how to Existing(ootb) Related Lists Configuration and query code as they are not available in Relationship?

find_real_file.png

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

update query as this

// ensure you give the correct field from case table which refers incident table

current.addQuery('sys_id', parent.incident);

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

update query as this

// ensure you give the correct field from case table which refers incident table

current.addQuery('sys_id', parent.incident);

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Edit option and filter condition also should appear as shown(similar to second screenshot)

jnfjn
Tera Contributor

But for above query, when a record is created using new button, then that particular record is not getting added under related list of incidents. please let me know what else need to do for that