How to add a tab in standard Ticket Configuration to show related records(Related Incidents on INC)

Community Alums
Not applicable

I want to add a tab in the standard Ticket Tab to show related records (related child incidents on the incident). 

I have a tab configuration for this but it isn't showing any records under the tab in the portal though there are related records ( Parent Incident is not displaying its child records under this tab in the portal)

 

 

var vis = {};
var princ = new GlideRecord("incident");
princ.addQuery("parent", current.sys_id);
princ.setLimit(1);
princ.query();
//if (princ.getRowCount() > 0) {
if (princ.getRowCount()!= 0 ) {
    true;
} else
    false;

 

 

Screenshot 2023-06-05 114935.png

1 REPLY 1

Asif Khan M
Giga Guru

Hi @Community Alums ,

It looks like you're missing 'return' keyword in line 7 and line 9.