Hello everyone,
I am using Jira Service Management cloud and i found script Jira_auto_refresh_issues_list.js but i dont know how can i enable this script in order to it works.
Can anyone help me.
Thanks in advance.
This script reloads the issues list every 60 seconds
jira_auto_refresh_issues_list.js
// 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() {
// Wait for 60 seconds before calling setInterval which fires immediately
setTimeout(function() {
// Refresh table every 60 seconds
setInterval(function() {
AutoRefreshIssuesList.refresh();
}, 60000);
}, 60000);
});
};
// Refresh function - must use this to again test URL since AJAX can otherwise allow refreshes where we don't want
AutoRefreshIssuesList.refresh = function() {
if (/^(\/issues\/)/i.test(location.pathname)) {
AJS.$(".refresh-table").click();
}
}
// Fire on initial page load
AutoRefreshIssuesList.init();
}
You can't do anything with this Script. Running JS code is not allowed. What are you trying to achieve?
Ravi
Hello, Thanks for the reply
I would like to the page of Jira issue reloads every 60 seconds automatically
How can i do it?
Maybe in the advanced setting of jira service management have this option but i dont know where i can find it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.