Calculate Risk Score based on a custom questionnaire configured in resource section

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:
  1. Goto Admin > Developer Space > Global function > New > Paste the content from the attachment GF_4 - Configuration.txt and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.

  3. Go to Admin > Developer Space > Global Functions > Copy & Paste the attached risk_matrix_global_function.txt and save it with a name.
    1. Update the scores for each response in the questionnaire according to requirement.
  4. Go to Admin > Developer Space > Request > Copy & paste update_change.txt and save it with a name.
    1. Update the global function name according to your instance at line no: 1  and  8.
  5. 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?