[api] support searching for issues in packages when defined via an attribute