Forums

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

Prevent project-level Bitbucket Admins from changing the project key

Roy Powell January 10, 2022

I have a scenario where some users in Bitbucket have Admin access for their respective project (they aren't "Bitbucket Admins", they just have the admin access for that project provided via the Project permissions). I want to be able to prevent these users from editing their Project Key, while retaining their other admin privileges.

Is there a way to hide / disable the project key editing for these users? I have tried through scriptrunner but could not find a way to hide this specific UI element.

1 answer

1 accepted

2 votes
Answer accepted

Hi @Roy Powell 

Maybe hiding the project key field is not the only way. I believe you can achieve this with an event listener that would cancel the edit action. We are working on an answer for this and will get back to you soon

Regards

Yannis

Hi @Roy Powell 

We have released a new script that you can use here :

https://library.adaptavist.com/entity/prevent-project-administrators-from-changing-the-project-key.

Using this script, the 'Project Key' field will not be hidden, but when a project admin tries to change it, their request will be cancelled with an error message.

Screenshot 2022-02-14 at 15.45.07.png You can also modify the script to block them from changing other project properties, like name, description, public etc

Hope this helps!

Regards,

Yannis

Like • 2 people like this
Roy Powell February 14, 2022

@Yannis Argyropoulos [_ScriptRunner - The Adaptavist Group_]  this is fantastic and exactly what I was looking for, thanks so much for going to these lengths to help me out.

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