- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 11:02 AM
Good Afternoon,
I am looking to see if anyone has an example of scripts used for Assignment Rules for Vulnerability Items? This is for the Vulnerability Assignment Rules.
Basically what I am looking to do is, if the Configuration Item you are targeting does not have a support group assigned, walk up the tree until you come to a configuration item that does have the support group set - and use that.
Thanks,
Jason
Solved! Go to Solution.
- Labels:
-
Vulnerability Response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 02:50 PM
Jason,
I understand now, a "parent/child" relationship. A Network Adapter has a Configuration Item field that references its Parent (another CI).
I would check to see if your current ci is part of know class that has a Configuration Item Property:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 11:32 AM
Jason,
The Assignment Rules that use the scripted assignment uses "current". So...
//basic assignment
var gid = "cfcbc3720ff55a80f9fb00dce1050e37”; // Identify Assignment Group by
current.assignment_group = gid; //Set the Assignment Group
I'm not sure how your plan would work. Let's look at a Windows Server:
A Windows Server is a Server. A Server is a Computer. A Computer is a Hardware. A Hardware is a Configuration Item.
Each layer extends its fields and the field of its parent to its child. So, the Assignment Group on Windows Server comes from the Configuration Item. There is only one Assignment Group set in the entire relationship. (i.e. The Assignment Group would IS identical when looking at that item regardless of if you look at it from the Configuration Item or Windows Server class)
Go ahead and mark this as helpful or Correct!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 11:36 AM
Thank you for the response. I am referring to something - lets saw a switch port on an IP Switch. Or anything down below a "Major" configuration item.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 02:50 PM
Jason,
I understand now, a "parent/child" relationship. A Network Adapter has a Configuration Item field that references its Parent (another CI).
I would check to see if your current ci is part of know class that has a Configuration Item Property:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 04:27 AM
Thank you! This is a step in the right direction.