Custom risk matrix dashboard does not refresh when new test results or defects are logged

We built a risk matrix in Jira using custom fields for Probability and Impact on a Risk issue type. Each Risk issue links to Test issues and Bug issues to calculate exposure. The dashboard shows a heat map gadget filtering risks by calculated score.

The problem is the risk scores don’t update automatically when test results change or new defects are logged. We have to manually edit each Risk issue to trigger recalculation:

def failedTests = issue.getLinkedIssues("relates to")
  .count { it.issueType.name == "Test" &&
           it.getCustomFieldValue(testStatusField) == "Failed" }
def openDefects = issue.getLinkedIssues("relates to")
  .count { it.issueType.name == "Bug" &&
           it.status.statusCategory.key == "new" }
return (failedTests * 2) + (openDefects * 3)

The scripted field runs on Risk issue view but doesn’t recalculate when the linked tests or defects change. Dashboard reports are stale until someone opens each risk. How can we trigger automatic updates?

Check your dashboard gadget refresh settings. Most gadgets cache data for 15-30 minutes by default. Even if the underlying issues update, the dashboard won’t show changes until the cache expires. You can force refresh by clicking the gadget’s refresh icon, but for automatic updates you’d need to reduce the cache interval or use a different visualization approach like Structure or Advanced Roadmaps.

I tried setting up an automation rule that triggers on Test status changes and edits the linked Risk issues, but it’s creating a lot of noise in the activity stream. Every test result update generates multiple “Risk issue updated” entries. Is there a way to do silent updates or batch the changes?

Use the “Edit Issue” action with the “Skip notifications” option enabled. This prevents email spam. For the activity stream, you can’t completely hide the updates but you can minimize them by using a scheduled automation rule that runs once daily instead of triggering on every test change. The trade-off is your risk scores will be up to 24 hours stale.