Need to create a Required Remediation task only for a CI where 'Is Virtual' is false

Susmitha1625
Tera Guru

Hello People, 

 

Please help me. I'm not able to create a filter to do this, We have a requirement to create a Required field Remediation task for a Computer CI where the Serial number is mandatory if 'Is Virtual' field is false. Should not create a remediation task if Is Virtual is true. When I'm using a UI policy/Data Policy to make Serial Number mandatory and not through dictionary override. The Remediation task is not considering the Serial Number attribute under a Required metric.

3 REPLIES 3

Sandeep90
ServiceNow Employee
ServiceNow Employee

One way to solve it is to set up health inclusion rules with 'is virtual' is false and then enable task creation for the required metric and run the health completeness  job. This should only create failures where the health inclusion rule is valid and without a serial number. 

Susmitha1625
Tera Guru

@Sandeep90  I've other fields also (Name) under Required metric. If I add in the Health Inclusion rules, the same functionality would be applicable for other fields too. But I don't want to create remediation tasks where the Serial Number is not needed if the 'Is Virtual' field in True. 

If you still want to create a task in case the name is still missing, I would suggest using the scripted audit to create the tasks.