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 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

611 views 1 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