Prevent a group from being assigned records

Kevin Paul
Mega Guru

Hi All,

 

We have a group that is going to be deactivated soon but before that it needs to be modified such that no tickets are assigned to this group. There is incident, change, sc_task and also couple of catalog items that can assign to this specific group. I know that I can change the reference qualifier for the mentioned tables and the catalog variables and prevent group from being assigned. I would like to know if there is any other way we can achieve this? 

Group cannot be deactivated because reports are created for the group and we have to be able to select the group in that case.

 

Any help is appreciated.

Thanks!

4 REPLIES 4

johnfeist
Mega Sage
Mega Sage

Hi Kevin,

If all the tables involved extend task, you can create a Business Rule, Before Insert and Update.  In that you can check for the assignment_group being set to the group in question.  When you get as hit, post an error message and abort the action.  After the abort, have your script reset the assignment_group from previous to current.

 

 

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hi John,

 

Anything else apart from using scripts? Anything with Configuration changes?

Hi Kevin,

If all you are doing is saying that the group in question can't have "tickets" assigned, that should do it.  If there are fields that potentially might need to be reset because they were changed for the group in question, they can be reverted by assigning their value from previous to current.  I hope that's what you are asking.

 

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Community Alums
Not applicable

Hi @Kevin Paul ,

Navigate to system policy->rules-> assignment or assignment lookup rule.

Disable the rules for the group to be deactivated.

 

create new rules and set them to active groups of interest.

 

If it works, please mark as helpful.