Can i get suggestions , on how to fetch issues especially when there are a lot of them in the instance , without burdening the instance,
Right now, iam fetching using pagination and changing the count values and placing setTimeout function in between each execution of the function , until it fetches all the issues or desired values , is there any other way to do it ?
let count = 0
let issues= []
async function fetchIssues(){
let response = await fetch('your-domain.atlassian.net',{});
issues.push(response.issues)
if(count < 10){ //Ignore count normally iam comparing values with remaining issues and //run the code until i get all the issues
setTimeout(fetchIssues,500);
}
}
Iam just writing the code here for reference on how iam doing it , this is not my exact code