You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.