Skip to content

Instantly share code, notes, and snippets.

@splintor
Last active January 3, 2021 13:02
Show Gist options
  • Save splintor/a8b875e3778744c6b679b2f7db289588 to your computer and use it in GitHub Desktop.
Save splintor/a8b875e3778744c6b679b2f7db289588 to your computer and use it in GitHub Desktop.
JIRA - Highlight tickets assigned to current user
// ==UserScript==
// @name JIRA - Highlight tickets assigned to current user
// @namespace https://github.com/splintor/
// @version 0.2
// @description Make tickets assigned to current user more prominent
// @author You
// @match https://jira.wixpress.com/*
// @icon https://jira.wixpress.com/s/axu8xe/803004/0ce41cd00ea738d648224bf4342ed953/_/images/fav-jsw.png
// @downloadURL https://gist.github.com/splintor/a8b875e3778744c6b679b2f7db289588/raw
// @updateURL https://gist.github.com/splintor/a8b875e3778744c6b679b2f7db289588/raw
// @grant none
// ==/UserScript==
(function() {
'use strict'
function addStyle() {
const fullName = document.getElementById('header-details-user-fullname')?.getAttribute('data-displayname')
document.querySelectorAll(`[data-tooltip="Assignee: ${fullName}"]`).forEach(e => {
e.parentElement.parentElement.parentElement.style.backgroundColor = 'lightyellow'
})
setTimeout(addStyle, 2000)
}
addStyle()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment