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. https://developer.atlassian.com/display/JIRADEV/Inline+Edit+for+JIRA+Plugins

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

https://docs.atlassian.com/aui/latest/docs/restfulTable.html


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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,717 views 17 21
Read article

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