Calculate Risk Score based on a custom questionnaire configured in resource section
UseCase:
Risk score has to be set based on the response for a custom questionnaire.
Because the Change module does not offer resource sections like the Service Request module does, this requirement may take the majority of the available additional fields. As a workaround, we can create a service request with the set of custom questionnaire configured in the resource section and then use these to calculate the risk and then create a change request with the calculated risk score.
Steps to configure:
- Goto Admin > Developer Space > Global function > New > Paste the content from the attachment GF_4 - Configuration.txt and save it with a name.
- Update the URL and integration key in the script.
- You can get the integration key under Admin > Integrations > Integration Key > New
- Please use an integration key with admin privilege, as there wont be any role related permission issues.

- Update the integration key in the global function.

- Go to Admin > Developer Space > Global Functions > Copy & Paste the attached risk_matrix_global_function.txt and save it with a name.
- Update the scores for each response in the questionnaire according to requirement.
- Go to Admin > Developer Space > Request > Copy & paste update_change.txt and save it with a name.
- Update the global function name according to your instance at line no: 1 and 8.
- Go to Admin > Automation > Custom Triggers > Request > Configure the created custom function in a custom trigger, invoking criteria can be set as per requirement.
New to ADSelfService Plus?