How to disable single JIRA shortcut ?

I want to disable "i" shortcut (not interested in disable all of them). Can someone help me and tell how to do it ?

2 answers

0 votes
Volodymyr Krupach Community Champion Nov 27, 2016

AFAIK, there is no way to disable/enable single shortcut through JIRA UI.

You can do it by creating custom addon with Keyboard Shortcut Plugin Module but this looks like too much effort.

I made my own plugin but it did not override shortcut or disable it :/ just add another action

Volodymyr Krupach Community Champion Nov 27, 2016

Check the paragraph "Overriding Existing Keyboard Shortcuts". Important item:

ensure that an order element is added, whose value is greater than that defined in the keyboard shortcut being overridden.

I should be more specific, because there is another problem laugh 
When I add plugin with shortcut "i" action, I can override it only in overlap "Issues". My plugin is not working in "Backlog" or "Active sprints". 

Volodymyr Krupach Community Champion Nov 27, 2016

Did you try any other shortcut on "Backlog" or "Active sprints" screens without overriding? I suspect that Keyboard Shortcut Plugin Module is not supported there.

You can always add JavaScript handlers (quick googling give me this) and push your JS resource module to atl.general context.

Yes, you are right. Keyboard Shortcut Plugin Module is not supported there. When I add JS, "Assign to me" is still working. I can not override it there and I don't know how to block it. 
I made new shortcut (work everywhere issues, backlog etc.) but I'm stuck with blocking default "i" shortcut. 

 

Volodymyr Krupach Community Champion Nov 27, 2016

I can not override it there and I don't know how to block it. 

You can try to do it via pure JS by catching the appropriate key stroke and making sure it's not passed future (I guess that "return false" form the event handler should do the work). This will work if your JS is loaded before JIRA JS that declares 'i' handler. So you have to try it.

@Volodymyr Krupach thx for help wink
This work perfect:

AJS.$(document).keypress(function(event) {
			if (event.keyCode == '105' ){
			//	console.log('hakunamatata + karamba');
			 event.stopImmediatePropagation();
			}
		});
Volodymyr Krupach Community Champion Nov 28, 2016

Welcome smile.

We have this same exact issue and need to disable the "i" function in our instance. Where exactly would you have to put this code? I tried putting it in the annoncement banner with no success.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

631 views 4 15
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
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