Only show groups with "assignment group" ticked

scottjus82
Kilo Guru

Good morning,

 

I am trying to sort out an issue with our assignment groups. I only want to display groups that are active and marked as an "assignment group" in the groups user administration section. This was meant to have been done by predecessor however it does not work. The following line is in the ref qualifier field for assignment group on the incident form. active=true^typeISEMPTY^NQactive=true^typeLIKE50e336982b6705000e9f8c1fe8da1590. the first problem is it dosnt work as stated as in I can assign tickets that are marked as in-active. also tere is no reference to "assignement group" true or false field.

 

Can anyone advise? I have played around with the script but have not got it working.

 

Regards

10 REPLIES 10

peterwigham
Kilo Expert

Hi Steve,



Firstly, how do you differentiate an assignment group from a non-assignment group? Secondly, all you want to do is display ONLY groups with an Active value of 'true' and a Type of 'assignment group'?



From the looks of the qualifier your predecessor has used two clauses against the 'Type' value. I may be wrong but from the looks of it he uses:



active=true^typeISEMPTY^NQactive=true^typeLIKE50e336982b6705000e9f8c1fe8da1590



Looking for Type to be Empty as well as Type to be like the stated sys ID. This should be a fairly easy statement if you can just advise how you differentiate those groups from an assignment and non-assignment group.



Cheers,


PW


Jim Coyne
Kilo Patron

You may also want to take a look at Group Types so you can limit the groups based on the application.   Here's a wiki article that explains the functionality - Configuring Group Types for Assignment Groups - ServiceNow Wiki.



It may be a bit more involved, but provides a lot of flexibility.


Thanks for the response Jim. I will have a look through the article you suggested.



In reponse to the other question we differentiate between assignment and non assignment via a true/false checkbox on the group pages (sys_user group) the element is called assignment_group.



I assumed it would be a simple ref qualifier similar to the one we have on our u_category column that only shows active CI's but I have tried and that does not work.



If anyone can advise on a script based on the above info I can use as a stop gap then long term we will use the group type referenced in the above article



Regards


So this simple Reference Qualifier should do the trick for you:



active=true^u_assignment_group=true