Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,070
Community Members
 
Community Events
176
Community Groups

Enable Script - Jira_auto_refresh_issues_list.js

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();
}

1 answer

0 votes

Hi @Aleksandr Ganiyev 

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. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events