How to add a tab in standard Ticket Configuration to show related records(Related Incidents on INC)
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 06:17 AM
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;
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 10:41 AM - edited 06-05-2023 10:42 AM
Hi @Community Alums ,
It looks like you're missing 'return' keyword in line 7 and line 9.