Created
September 9, 2015 08:19
-
-
Save sceeter89/e8d6622ab802c63f94a3 to your computer and use it in GitHub Desktop.
GreaseMonkey script to automatically refresh Jira Agile board once yellow popup appears
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 AutoRefresh board | |
// @namespace JIRA | |
// @include http://<JIRA URL>/secure/RapidBoard.jspa | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var i = setInterval(reloadBoard, 1000); | |
function reloadBoard() { | |
if (AJS.$('.js-refresh-now').length && AJS.$('.js-refresh-now').is(':visible')) { | |
console.info('There is a refresh pending. Updating...'); | |
AJS.$('.js-refresh-now').click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment