Assignment rules in Vulnerability Response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 12:38 PM
Hi,
We are using Assignment rules in Vulnerability Response. In that we are using scripted to assign the assignment groups. So my question is if there is no group returned from the script can we move to next assignment rule?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 12:49 PM
Hello @daggupati
Yes, we can. By adjusting the order of the assignment rules, you can manage which rule will be first triggered.
Please hit on the helpful button.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 12:54 PM
Thank you for the response. Conditions for the assignment rule are matched but the script won't return any assignment group. So Can we move to next assignment rule basing on execution order? If so what script do I need to update?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:38 PM
Hello @daggupati
You can check your script for conditions. If the script doesn't find a suitable assignment group, you can simply return null or an empty value. This will allow the system to evaluate the next assignment rule in the sequence.
Here’s a simple example of how your script might look:
if (!group) {
// No group found, return null to move to the next rule
return null;
}
Make sure to test your rules thoroughly to ensure that the fallback logic is working as expected.
Please hit on the helpful button if you think this will help you.
Thank you