Hello, I am trying to make a custom pre-receive hook but I can't make a custom pre-hook in a project I created, I can only do a custom pre-hook if I am at the base of my BB, making it really difficult to test my pre-hook since a lot of users will be impacted. Is there something I am missing ?
Hi @Margaria Vince you can do this at the Project or even Repository Level. Go to Admin in the Project then Scriptrunner then Pre-Hooks
Here's a reference for you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, it seems you did not understand my problem so I took a screenshot, whenever I am in a project, I don't have the option to create a custom pre-hook, but If I go to the root (where all the pre-hooks for every project are) I can create a custom pre-hook.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ScriptRunner scripts for Project and Repository level, are running in restricted sandboxed environment, see https://docs.adaptavist.com/sr4bib/latest/get-started/settings/admin-only-project-and-repository-script-access
This also means that some features are only available in a Global level, and cannot be set in a repository or project level, for a full list of these features, you can have a look at https://docs.adaptavist.com/sr4bib/latest/get-started/permissions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.