I'm using Script Runner in a transition to assign the current user as the assignee when there's no one assigned, but when searching for this issue it doesn't appear in the result list.
The script works, because the user is assigned the issue, but when searching for all issues that this user has assigned it doesn't appear in the list.
When I manually assign the issue to this user then the issue does appear in the search result.
Am I doing something wrong? (the result I see on screen seems to work).
Or is Script Runner failing somewhere?