Summary
This KB demonstrate how to create a CMDB R","articleBody":"
CMDB Remediation rule - Staleness - How to automatically close the task
Summary
This KB demonstrate how to create a CMDB Remediation rule to automatically run Remediation and close the task (stale_ci_remediation)
Instructions
Follow instructions on the doc below to create a workflow and a CMDB Remediation rule
\r\n\r\nNote:
\r\nFor the workflow
\r\n1> It's necessary to use "run script" activity to run:
\r\ncurrent.state = 3;\r\n
This is to set the task (stale_ci_remediation) Closed Complete
\r\n(This is different to the duplicate remediation, which closes the task automatically after duplicates are deleted)
\r\n2> In the property of the workflow, when condition matches, none should be selected.
This is because the workflow does not to start on its own. Instead it is launched by business rule.
For the CMDB remediation rule
\r\n1> Task type should be: Stale CI Remediation [stale_ci_remediation]
\r\n2> Execution should be Automatic