Snippets

Mythics Jira - auto-refresh issues list

You are viewing an old version of this snippet. View the current version.
Revised by Jonathan Hult b3f5f8e
// Only on issues list
if (/^(\/issues\/)/i.test(location.pathname)) {

    var AutoRefreshIssuesList = AutoRefreshIssuesList || {};
    
    // Main function
    AutoRefreshIssuesList.init = function() {

        // Wait until page is loaded
        AJS.toInit(function() {
            setTimeout(function() {
                // Refresh table every 60 seconds
				setInterval(function() {
					AJS.$(".refresh-table").click();
				}, 60000);
             }, 60000); 
        });
    };
    
    // Fire on initial page load
    AutoRefreshIssuesList.init();
}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.