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.

Auto populate assignment group based on assigned to user

Sowjanya Panuga
Tera Contributor

Using client script how can I Auto-populate the assignment group based on the assigned user?

9 REPLIES 9

hi @Sowjanya Panuga 
this doesn't make any sense becuase it should be when selecting assignment group assigned to user should be auto populate.

if you want reverse the logic , use below

 

there is a gr member table in snow , gliding the table you will be able to do that.
create script include and client script using glideajax async
1.script include

-glide record gr member table 
-take input from user field, compare it with existing record in gr member table,

-if match found get the corresponding group sys id and store it in variable and return json string to client script.

2.client script 

-now get the glideajax syntax

-get script include name, function name, parameters

-and call the function aync and auto populate the assignment group


let me know if this works.


Please accept the solution /mark this response as correct or helpful if it assisted you with your question.




Regards,
Animesh

Sowjanya Panuga
Tera Contributor

Using client script i want to auto-populate the assignment group based on the assigned to user in which user belongs to the group.

 

AMan1997
Tera Guru

Hi @Sowjanya Panuga ,

 

You can make use of "Assign To Me" UI Action, available OOB.
If this serves your requirement.

 

Thanks,

Sowjanya Panuga
Tera Contributor

Using client script i want to auto-populate the assignment group based on the assigned to user in which user belongs to the group

 

Sowjanya Panuga
Tera Contributor

Using client script i want to auto-populate the assignment group based on the assigned to user in which user belongs to the group