Created
January 22, 2026 09:08
-
-
Save vidarl/633e2a8dfe055fd4a0d61e46ebc1c267 to your computer and use it in GitHub Desktop.
Greasemonkey script for linking from new to old jira tracker
This file contains hidden or 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
| // ==UserScript== | |
| // @name Link from new Jira cloud to old Jira | |
| // @namespace https://gist.github.com/vidarl/633e2a8dfe055fd4a0d61e46ebc1c267 | |
| // @version 1.0 | |
| // @description Add a link to the corresponding issues.ibexa.co ticket page | |
| // @match https://ibexa.atlassian.net/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function () { | |
| 'use strict'; | |
| // Match /browse/some_string-some_number | |
| const match = window.location.pathname.match(/^\/browse\/([a-zA-Z0-9_-]+-\d+)$/); | |
| if (!match) return; | |
| const browseId = match[1]; | |
| const targetUrl = `https://issues.ibexa.co/browse/${browseId}`; | |
| // Find header and nav | |
| const header = document.querySelector('header'); | |
| if (!header) return; | |
| const nav = header.querySelector(':scope > nav'); | |
| if (!nav) return; | |
| // Prevent duplicate insertion | |
| if (header.querySelector('.issues-link-container')) return; | |
| // Create container div | |
| const container = document.createElement('div'); | |
| container.className = 'issues-link-container'; | |
| // Create link | |
| const link = document.createElement('a'); | |
| link.href = targetUrl; | |
| link.textContent = 'View on issues.ibexa.co'; | |
| link.target = '_blank'; | |
| link.rel = 'noopener noreferrer'; | |
| // Optional styling | |
| link.style.display = 'inline-block'; | |
| link.style.padding = '0.5em'; | |
| container.appendChild(link); | |
| // Insert just before <nav> | |
| header.insertBefore(container, nav); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment