Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Vulnerable Item assignment rule script

sjjantz
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

sjjantz
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

sjjantz
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';