Last active
January 3, 2021 13:02
-
-
Save splintor/a8b875e3778744c6b679b2f7db289588 to your computer and use it in GitHub Desktop.
JIRA - Highlight tickets assigned to current user
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 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