Assignment Group field should not pick inactive groups

Bijay Kumar Sha
Giga Guru

Hi,

I've an existing script available for Assignment Group field as below:

BijayKumarSha_0-1684732324070.png

BijayKumarSha_1-1684732421505.png

 

I need to one condition in above existing script as active=true. So, that Assignment Group should pick only active groups. 

However, the problem is the above BR is in Global table. How I can dot walk to group table and then to Assignment group?

I tried to put active=true in reference qualifier in the dictionary of Assignment group filed in above screenshot, but it's not working for all the tables like inc, service request, change, problem, task, group approval etc. 

So, only option is left for adding the condition in the script itself. 

Can anyone help me to do this?

 

10 REPLIES 10

Sandeep Rajput
Tera Patron
Tera Patron

@Bijay Kumar Sha Did you try 

 

javascript:TaskAssignmentFilter()+'^active=true';

Screenshot 2023-05-22 at 12.56.17 PM.png

 

 

 

Hi @Sandeep Rajput ,

As I mentioned it's working for active true groups. But the BR mentioned in the reference qualifier seems to be broken. 

Ankur Bawiskar
Tera Patron
Tera Patron

@Bijay Kumar Sha 

there is OOB query business rule on group table which should show only active groups

Is that BR not active in your instance? Please check that

 

AnkurBawiskar_0-1684740533693.png

 

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

Hi @Ankur Bawiskar ,

I've checked the BR and it is active. Please find the screenshot as below:

BijayKumarSha_0-1684742002774.png

 

As I mentioned I've tried by putting active=true condition in the reference qualifier. It's filtering out the Active groups only. But the other BR mentioned in the reference qualifier isn't working.

So, I think only option left to put the condition in the BR itself mentioned in the reference qualifier. But as I mentioned the issue is the BR is Global table. How I can navigate to Assignment Group field available in group table from Global table?

Can you please help me on this?