---
title: "Set up a change risk assessment"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/itsm/change-risk-assessments/
type: task
application: itsm
last_updated: 2026-10-18
commit: 50111ae9bd3b
---


Set up a change risk assessment when you want a change's **Risk** to come from a questionnaire instead of a guess. The agent answers weighted questions from the change form and the total score sets the risk.

## Before you begin

- You need the `administrator` role, because the assessment uses a record generation script.
- Know how catalog items and their questions work. A risk assessment item is built the same way. See [Catalog item fields](page:catalog/catalog-items).
- Decide your questions, the weighting of each question and the score of each answer. The example under **Result** shows how they combine.

## Steps

<Steps>
  <Step>
    Open **Risk assessment items** and create an item, or copy the default example. You can make the example inactive once you have your own.
  </Step>
  <Step>
    Set a **Key** that reads well in a script, because the risk assessment button refers to the item by its key. Set the table to **Risk assessment answers**.
  </Step>
  <Step>
    Add the questions and answers as you would on a catalog item. The item does not appear in the catalog.
  </Step>
  <Step>
    On the **Advanced** tab, enter a record generation script like the default example's:

    ```javascript
    // Variables are current, sourceRecord, questions
    let sourceRecordId = sourceRecord.ID();
    let sourceRecordTableName = sourceRecord.TableClass();
    let genericReferenceId = sourceRecordId + ":" + sourceRecordTableName;
    let questionsAndAnswers = questions.asJson();

    // Calculate the risk
    let risk = RiskAssessmentUtil.calculateRisk("Change risk assessment", questionsAndAnswers);

    // Put the risk on the source record
    Table(sourceRecordTableName, sourceRecordId).Risk(risk).update();

    // Put it on the Risk assessment answers record
    current.Record(genericReferenceId);
    current.Risk(risk);
    ```
  </Step>
  <Step>
    Open **Change risk assessments** and create a record for the item. Give it a name and any notes.
  </Step>
  <Step>
    Open **Risk assessment questions** and create one record per question. Link the question to the risk assessment, name it and give it a weighting above 0.
  </Step>
  <Step>
    Open **Risk assessment question answers** and record the score of each answer. The answer must match the question's answer exactly: the choice key for a choice question, "yes" or "no" for a boolean.
  </Step>
  <Step>
    Open **Risk assessment thresholds** and create one threshold per risk level. Use the change's Risk values: Critical, High, Medium and Low. The threshold is the lowest total score for that level.
  </Step>
  <Step>
    Point the button at your item. The default table operation "Change - risk assessment" shows a **Risk assessment** button on saved changes. In its script, set `questionItem` to your item's key:

    ```javascript
    Navigate.showQuestionModal({
        questionItem: 'RiskAssessment', // the key of your risk assessment item
        questionItemParams: questionItemParams,
        modalOptions: modalOptions
    });
    ```

    You can make the default operation inactive and copy it to call the assessment from your own client script.
  </Step>
</Steps>

<Callout type="info">
  One set of thresholds applies to every risk assessment. Plan your weightings and scores so the same thresholds fit them all.
</Callout>

## Result

Agents select **Risk assessment** on a change, answer the questions and close the form. Each answer's score is multiplied by its question's weighting and the results are added. The total is compared with the thresholds, and the matching level is written to the change's **Risk**. The answers are kept on a Risk assessment answers record, which the button reopens next time.

For example, take two questions. "Has this change happened before?" has weighting 5, with Yes scoring 1 and No scoring 5. "How long does it take to back out?" has weighting 2, with Instantly scoring 1, Less than 1 hour scoring 3 and More than 1 hour scoring 5. The thresholds are Low 0, Medium 10, High 20 and Critical 30.

| Answers | Calculation | Total | Risk |
| --- | --- | --- | --- |
| Yes, Less than 1 hour | 1 × 5 + 3 × 2 | 11 | Medium |
| No, More than 1 hour | 5 × 5 + 5 × 2 | 35 | Critical |
| Yes, Instantly | 1 × 5 + 1 × 2 | 7 | Low |

## Related

- [Change types, workflows and scheduling](page:itsm/change)
- [Change fields](page:itsm/change-fields)
- [Catalog item fields](page:catalog/catalog-items)
- [Table operations](page:automation/table-operations)
