try using linkedIssuesFromFilter()
with a filter for resolved issues excluded. first, make a filter for open blockers, then use it in your query like assignee = currentUser() AND status = "To Do" AND issue NOT IN linkedIssuesFromFilter("open-blockers-filter", "is blocked by")
. this should help!