@nikhitha24 

please share if that HR service has any assignment rule configured for it?

Your applies to is table is HR Service, should it not be the particular HR service?

then apply the table name in the addQuery

 

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