Created related list for assignment rule for HR service

nikhitha24
Tera Guru

Hi All,

 

Can someone help me on the below issue please.

 

I have HR Service name (Permanent Staff) under this service in ,related list  I have created new tab assignment rules

HR service table is talent management 

nikhitha24_0-1737480093353.png

 

on the HR service form related list is visible, but i want to see the related assignment rules for the particular HR service. 

if any assignment rules are there for particular HR service it should visible under related assignment rules

 

Please help me on this.

Thank you..

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@nikhitha24 

is that a defined relationship which you have created?

if yes then please share the configuration and script which you have written to fetch

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 

Thank you for reply

nikhitha24_0-1737521361753.png

written the above script but on the HR service form in assignment rules tab showing all the assignment rules, but i want to visible only assignment rule which is related to current HR service ,

nikhitha24_1-1737521569429.png

 

Please help me on this

 

@nikhitha24 

update line 6 as this

current.addQuery('table', parent.sys_class_name);

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 

I have already added the above line, but its not working, after adding no records showing in assignment rule on HR service form

 

nikhitha24_0-1737522270468.png

nikhitha24_1-1737522329898.png

Please help me on this