You are here: Integrating with TestTrack > Analyzing issue risk in files

Analyzing issue risk in files

You can analyze risk to predict potential problems in source files attached to issues and identify files that may need attention. For example, you may want to analyze risk to identify high risk files that have priority for code review or that need an owner or workflow state change.

Risk scores are calculated based on the number of issues files are attached to during a specified time period. Files with higher risk scores compared to related files are more likely to have unresolved problems. Reviewing files with higher scores can help you address problems and prevent issues from making it into builds. See Performing Code Reviews.

Keep the following in mind:

1. Choose Tools > Analyze Risk.

The Analyze Risk window opens.

2. Click Browse and select the branch and repository to analyze.

3. Select the Analysis settings.

Note: If you change the analysis settings, previously calculated risk scores are cleared. You must reanalyze files to calculate risk scores using the updated settings.

4. Select Search expanded history to include attach events from other branches.

For example, you can include attach events performed when files were promoted, rebased, or added from another branch.

5. Click Analyze.

The risk score is calculated for all files in the selected repository and branch that meet the selected criteria. Files with higher scores compared to other files may need to be reviewed.

Tip: Sort the risk score column in descending order to rank the files from highest to lowest risk.

6. Optionally select a filter from the Filter list to limit the files displayed.

7. Select List recursively to display files in subrepositories.

8. Select a file and click a button to perform an action.

Button Action
View the selected file. See Viewing files in Surround SCM.
View the history of the selected file. See Viewing file history.
View properties for the selected file. See Viewing general file information.
Change the workflow state of the selected files. See Changing workflow states.
Change multiple custom field values for the selected files. See Changing multiple custom fields.
Perform a code review for the selected file. See Reviewing files.
Add the selected files to a code review. See Adding files to code reviews.
View code reviews for the selected file. See Viewing code reviews files are included in.

 

Additional documentation  Knowledgebase  |  Blog  |  Technical support