Skip to content

Instantly share code, notes, and snippets.

@vidarl
Created January 22, 2026 09:08
Show Gist options
  • Select an option

  • Save vidarl/633e2a8dfe055fd4a0d61e46ebc1c267 to your computer and use it in GitHub Desktop.

Select an option

Save vidarl/633e2a8dfe055fd4a0d61e46ebc1c267 to your computer and use it in GitHub Desktop.
Greasemonkey script for linking from new to old jira tracker
// ==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