[refactor] implement helper to grab all tasks given a list index