Hiding a particular group in assigment group filed in incident form

keerthana219
Kilo Contributor

how to hide a particular in group in assignment field in incident form, even when any group member tries to fill in assigned to field, the group shouldn't populate in assignment group field

5 REPLIES 5

yashkamde
Tera Guru

Hello @keerthana219 ,

 

In Dictionary override of the incident table make use reference qualifier for filtering out the restricted group,

yashkamde_0-1770698513763.png

 

 

replace :

javascript: new restrictGroup().hideGroup();

 

Create script Include :

var restrictGroup = Class.create();
restrictGroup.prototype = {
    initialize: function() {},

    hideGroup: function() {
        var restrictedGroup = 'Network Admins';
        var query = 'active=true';

        query += '^name!=' + restrictedGroup;

        return query;
    },

    type: 'restrictGroup'
};

 

 

If my response helped mark as helpful and accept the solution.