How to populate Assignment group dynamically based on category?

Aki17
Kilo Guru

What I would like to do is to make the table populate values dynamically as below:

1) When [category] = A, B, or C --> [Assignment group] = X (filled automatically)

2) When [category] = D, E, or F --> [Assignment group] = Y (filled automatically)


I believe that I will need to put client script, but could someone please give me the sample script for this requirement?


Best Regards,

1 ACCEPTED SOLUTION

Raf1
Tera Guru

Hi Aki,

You can consider using Assignment rules, more info on the link below:

 

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/task-table/concep...

 

Thanks,

Raf

View solution in original post

6 REPLIES 6

Raf1
Tera Guru

Hi Aki,

You can consider using Assignment rules, more info on the link below:

 

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/task-table/concep...

 

Thanks,

Raf

Hi Raf,

 

I didn't know that function. Thank you so much.

Sushant Kadam1
Kilo Guru

Hi,

you can use assignment rule for that.

Please refer below link to create assignment rule:

Create an Assignment Rule

 

 

Thanx,

Sushant

Inactive_Us1180
Kilo Guru

You can also use a script include to return an encoded query based on the category. 

In the assignment group reference qualifier field you would have something like javascript:<API name of script include>().

 

then in the script include you can do a switch statement that would return the assignment group query based on 'current.category'

something like this... 

function assignmentGroup(){

var category = current.category;

if(category == 'application') // JCL
return '<put an encoded query of what groups you want to show here>'