You might not be finding where you can add the code because editing badge SQL editing is now disabled by default. See here:
So I think the process would be to:
- Enable badge SQL editing (instructions in the linked topic)
- Create a new badge in Admin > Badges (or edit an existing badge if you’ve already created it)
- Add your SQL to the badge and save
- Disable badge SQL editing
Then if you haven’t already done so, going by the values in the SQL you posted:
- Create a category called “bug”
- Create a user group called “team”
- Add the users that you want to be able to accept bug reports to “team”