Last active
January 22, 2026 09:12
-
-
Save vidarl/a2be504bf3540385c6398ba35cee7dd2 to your computer and use it in GitHub Desktop.
Greasemonkey script for linking from old to new 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 old Jira to new Jira cloud | |
| // @namespace https://gist.github.com/vidarl/a2be504bf3540385c6398ba35cee7dd2 | |
| // @version 1.0 | |
| // @description Add a link to the corresponding ibexa.atlassian.net ticket page | |
| // @match https://issues.ibexa.co/* | |
| // @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://ibexa.atlassian.net/browse/${browseId}`; | |
| // Find the nav element | |
| const nav = document.querySelector('header nav'); | |
| if (!nav) return; | |
| // Create container div | |
| const container = document.createElement('div'); | |
| // Create link | |
| const link = document.createElement('a'); | |
| link.href = targetUrl; | |
| link.textContent = 'View on ibexa.atlassian.net'; | |
| link.target = '_blank'; | |
| link.rel = 'noopener noreferrer'; | |
| // Optional basic styling | |
| link.style.padding = '0.5em'; | |
| link.style.display = 'inline-block'; | |
| container.appendChild(link); | |
| // Append as the last element inside <nav> | |
| nav.appendChild(container); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment