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 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

92 views 0 1
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