Can I disable the "Merage" and "Delete" function on JIRA Project Administration, Versions page?

To reduce human error, we would like to remove the capability of Project Administrator to merge and delete version accidentally.

Is there any JIRA sytem configuration to do this?

2 answers

I finially figure out I can use write a plugin to use javascript to hide the "Merge" button on the version administration page.

And I can also use AUI RESTful table event to remove the "Delete" version functionality.

However, the "Delete" link of the version administration will re-appear once the version is updated or the logic simply doesn't apply to newly added version. I suppose to get "AJS.RestfulTable.Events.ROW_INITIALIZED" once the rows is updated.

Is there any AUI expert here to show me the proper method to register ROW_INITIALIZED event?

Hi Reeve lau, We are also trying to hide the Merge Button on Version Administration Page, we create a custom plugin with below code in the JavaScript jQuery(document).ready(function() { AJS.$("a[href='/plugins/servlet/project-config/REL/versions']").click(function() { //AJS.$("#project-config-operations-merge").hide(); setTimeout(function() {autoFillSummary();}, 50); jQuery(document).ready(function() { setTimeout(function() {autoFillSummary();}, 50); //AJS.$("#.aui-page-header-actions").hide(); tried but not working //AJS.$('#.aui-page-header').children('#.aui-page-header-actions').hide(); tried but not working //$('#.aui-page-header').eq(1).hide(); tried but not working //AJS.$("#aui-button").hide(); tried but not working //AJS.$("#project-config-operations-merge").hide(); tried but not working AJS.$("#project-config-operations-merge").prop( "disabled", true ); //AJS.$("#project-config-operations-merge").hide(); tried but not working }); }); }); Tried using JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) even then i had no Luck. Tried to hide the Button using Button ID, Button Class and Parent Div Class nothing worked for us. Can you please helpme out on this, this is very criticla for us. Thanks in Advance!!! Vinay

0 votes

Ugh, no,. This really is a case of educating your users. The version maintenance stuff makes it quite hard to make mistakes here, so if your users are, your problem is the users. I'd be tempted to remove their project admin rights until they've been properly educated. Fix the users, not the software.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,958 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot