Skip to content

Instantly share code, notes, and snippets.

@sceeter89
Created September 9, 2015 08:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sceeter89/e8d6622ab802c63f94a3 to your computer and use it in GitHub Desktop.
Save sceeter89/e8d6622ab802c63f94a3 to your computer and use it in GitHub Desktop.
GreaseMonkey script to automatically refresh Jira Agile board once yellow popup appears
// ==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