I created custom related list in project which is not showing breadcrumbs (filter links)..

Datha prasadred
Tera Contributor

Hi Team,

 

when i am working on ITBM i have created custom relationships and added into the project i am getting accurate list of records but when i am trying to  open breadcrumbs  in new window it is showing all records not related to parent 

i need to see the records which are related to the parent record only please help on this...please find the attached screenshot.

 

I am using this code :

(function refineQuery(current, parent) {
    if ((parent.instanceOf('pm_project') && parent.parent.nil())) {
        var project = new GlideRecord('pm_project');
        project.get(parent.getValue('sys_id'));
        if (current.isValidField('u_projectproject')) {
            current.addQuery('u_projectproject', project.getValue('top_task'));
Dathaprasadred_1-1703056701666.png

I need to see my records which are linked to specific project only like below.

 

Dathaprasadred_2-1703056785304.png

 

 
1 ACCEPTED SOLUTION

Hi,

Looks like you have Project field on your custom Lesson learned table.

No need to create custom relationship, you can add related list by configuring related list.

When you add any reference field on any table it create relationship and that can be adde on your forms as related list.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

Hi Anil,

Hope's all good,

 

I have created Custom related list , i have interacted in this forum , please check the link below for the same,

https://www.servicenow.com/community/csm-forum/filter-condition-is-not-coming-as-expected-in-the-rel...

As you mentioned, if  no need of creating Custom related list, how can i achieve my requirement using OOB .

I tried by creating related entry in  sys_ui_related.LIST table 

AbhilashaGT_0-1737461204390.png

its not working also, no filter condition.

Can you please tell me , in OOB Related list , the yellow color highlighted , how they have created and any dependency on that, because for this, filter condition is showing, how they configured > change_task.change_request  , please let me know.

AbhilashaGT_1-1737461322000.png

 

Regards,

Abhilasha G T