Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I make a custom pre-hook in a project

Margaria Vince February 6, 2023

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 ?

1 answer

0 votes
Craig Nodwell
Community Champion
February 6, 2023

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

Craig Nodwell
Community Champion
February 6, 2023

Here's a reference for you

Screenshot 2023-02-06 121255.png

Margaria Vince February 7, 2023

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.

 

 

 

no_custom.PNG

Hi @Margaria Vince 

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events