def issue_statuses(metric, last_measurement) -> list[dict]:
    """Return the metric's issue  statuses."""
    last_issue_statuses = last_measurement.get("issue_status", [])
    return [status for status in last_issue_statuses if status["issue_id"] in metric.get("issue_ids", [])]