Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

HI All

basha shaik
Tera Contributor

Hi All,

 

'x' person is in the' ABC' group.
but no ticket should go to him

how to ratify this problem 

 

bashashaik_0-1710226459625.png

 

 

Thanks ADV

12 REPLIES 12

ARUN MANOJ
Tera Contributor

Hi @basha shaik ,

 

It is for catalog task, please try do modification in the workflow or flow designer when the task (SCTASK) create , there you can specify the assignment group & assign to base on your custom conditions.

Next, incident use Client Callable Script Include and Client Script to auto populate the assignment group & assign to .

Please mark my answer as Accepted as Solution & hit Helpful button if it helped you.

 

Thanks

Arun

ARUN MANOJ
Tera Contributor

Hi @basha shaik 

 

It is for catalog task, please try do modification in the workflow or flow designer when the task (SCTASK) create , there you can specify the assignment group & assign to base on your custom conditions.

Next, incident use Client Callable Script Include and Client Script to auto populate the assignment group & assign to .

Please mark my answer as Accepted as Solution & hit Helpful button if it helped you.

 

Thanks

Arun

Simran Gadodiya
Mega Sage

Hi @basha shaik 
you can add reference qualifier for this user_name != assignment_group.manager.(update according to your condition)

 

Thanks.

Mark this as helpful and correct if this helps you.

 

Harish KM
Kilo Patron
Kilo Patron

Hi @basha shaik you can create a before update BR

script:

var grp = new GlideRecord('sys_user_grmember');
    grp.addQuery('user', current.assigned_to);
    grp.addQuery('group.name', 'ABC'); // Replace 'ABC' with the name of the group
    grp.query();
    if (grp.next()) {
        current.setAbortAction(true);
        gs.addErrorMessage('Assignment aborted. The user is a member of the ABC group.');
    }

 

Regards
Harish

Sandeep Rajput
Tera Patron
Tera Patron

@basha shaik Create an onBefore update business rule as follows.

 

Screenshot 2024-03-12 at 1.32.33 PM.pngScreenshot 2024-03-12 at 1.34.59 PM.png