In the GUI of a repository you can activate several build in ScriptRunner scripts.
The text is also mentioning: "To write your own choose Custom Script Hook."
But this option is in fact not available.
Note: On the project level that option is available.