How to set assignment group

Mi4
Tera Expert

Hi,

I want to set an assignment group by a variables in the record producer.

This option will increase in the future.

Can these be achieved with assignment rule lookup?

Or do you create a custom table and make a mapping table to handle it?

Can it be done only with business rule?

I'm looking for a way that is as standard as possible and easy to manage without scripts.

Regards,

1 ACCEPTED SOLUTION

Mohammad Danis1
Giga Guru

Hi,

I am assuming you have Category and SubCategory Field avaiable on the target table ?

If yes, then I would suggest you to go with Assignment Rule rather than the Assignment look up Rule :

You can create An Assignment Rule :

find_real_file.png

And to populate Assignment group you can script under script part something like :

if (current.category == "Hardware" && current.sub_category== "Hardware")
    current.assignment_group.setDisplayValue("ABC"); 
 else if (current.category == "Software")
  current.assignment_group.setDisplayValue("XYZ");
else if (current.category == "Malware")
current.assignment_group.setDisplayValue("Security");

find_real_file.png

 

Let me know, if that answers your question and mark my answer as correct / helpful.

 

Kind Regards,
Mohammad Danish

View solution in original post

24 REPLIES 24

Hi,

Thank you for your kindness.

Very easy to understand!

I was only thinking about having categories and subcategories as variables in the target table as well.

Does this mean that I need a field in the target table to do this?

 

Regards,

Gaurav Shirsat
Mega Sage

Hi Mi 

Yes You are on the Right Track.

This is the Link from where I took help for your problem.

https://community.servicenow.com/community?id=community_question&sys_id=22a8fd25db2f5f045ed4a851ca96...

 

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat

Mohammad Danis1
Giga Guru

Hi,

I am assuming you have Category and SubCategory Field avaiable on the target table ?

If yes, then I would suggest you to go with Assignment Rule rather than the Assignment look up Rule :

You can create An Assignment Rule :

find_real_file.png

And to populate Assignment group you can script under script part something like :

if (current.category == "Hardware" && current.sub_category== "Hardware")
    current.assignment_group.setDisplayValue("ABC"); 
 else if (current.category == "Software")
  current.assignment_group.setDisplayValue("XYZ");
else if (current.category == "Malware")
current.assignment_group.setDisplayValue("Security");

find_real_file.png

 

Let me know, if that answers your question and mark my answer as correct / helpful.

 

Kind Regards,
Mohammad Danish

Make sure your variable name in Record producer is equal to column name the target table to achieve this you can use the map to a field in the Record producer variable.

find_real_file.png

 

Kind Regards,
Mohammad Danish

Hi, Thank you for your advice.

I reconized that feature was HR-only. What are the main differences?

I am thinking of implementing it as an instance of HRSD, but I plan to use a ticket table as the target table.

I find it ideal to use that feature, but I don't fully understand it.

 

Regards,