The CreatorCon Call for Content is officially open! Get started here.

Vulnerable Item assignment rule script

sarahjantz
Tera Expert

We are looking to refine one of our VR assignment rules to take it a step further and not just assign to an assignment group, but also the assign it to the user contained in the assigned_to field on the CI record. Can anybody help me with the script necessary to accomplish this? We'd want to call out in the script assigning it to a specific group and then also assigning to the assigned_to if the field is not empty. 

1 ACCEPTED SOLUTION

sarahjantz
Tera Expert

For the record, this is what ended up working:

 

current.assigned_to = current.cmdb_ci.assigned_to;
current.assignment_group = 'inserts sys ID here';

View solution in original post

5 REPLIES 5

sarahjantz
Tera Expert

For the record, this is what ended up working:

 

current.assigned_to = current.cmdb_ci.assigned_to;
current.assignment_group = 'inserts sys ID here';