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
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Improve user experience across Jira with global settings
Learn how to set up and configure a Jira site, manage Jira permissions, and configure Jira apps and integrations.
Learning Path
Streamline projects across Jira with shared configurations
Build Jira work items with reusable configurations called schemes, and reduce administrative work with automation.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.