- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2025 05:34 AM
Hi All,
I have created a Related list by using "relationships"
and this i given applies to table as"project"
but when i open the project table records then these new related list is not showing
what is the reasonn for it ?
Regards,
Shabbir Shaik
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2025 05:45 AM
You should also add that via Configure Related Lists and add on your correct view.
I think you missed that or you are checking wrong view
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2025 05:25 AM
is that the complete script? looks incomplete
share complete one
I believe the script below I am sharing should bring the related CIs associated to the Project Resource Plan users
(function refineQuery(current, parent) {
var assignedToArr = [];
// Add your code here, such as current.addQuery(field, value);
var gr = new GlideRecord('resource_plan');
gr.addQuery('top_task', parent.sys_id);
gr.addQuery('state=3');
gr.query();
while (gr.next()) {
assignedToArr.push(gr.user_resource.toString());
}
current.addQuery('assigned_to', 'IN', assignedToArr.toString());
})(current, parent);
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2025 05:29 AM
if query is wrong , then the related list don't display ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2025 05:54 AM
related list should display but if query is wrong then data won't display
share screenshot on whether you added the Related list on correct form view
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2025 08:22 AM
Hi @shabbir5
Right click on the Project Form on Header, context menu will then click on Configure>>List Layouts and add your newly created relationship. Screenshot is added for reference:
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2025 05:30 AM
no i tried its not working
