Last active
July 3, 2020 15:50
-
-
Save adamturtle/2bdcedc1fb5218504000552c3fe27cdd to your computer and use it in GitHub Desktop.
Open Jira issue links in new tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AJS.$(document).ready(function() { | |
const jiraBoard = document.querySelector('.ghx-content-main') | |
const jiraLinkSelector = '.ghx-key-link' | |
jiraBoard.addEventListener('click', (event) => { | |
const issueLink = event.target.closest(jiraLinkSelector) | |
if(!issueLink) { | |
return | |
} | |
window.location = issueLink.href | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment