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
Jira Administrator
Configure Jira Software, Jira Core, or Jira Service Management, including global settings, permissions, and schemes.
Managing Jira Projects Cloud
Learn to create and configure company-managed projects in Jira Software and partner effectively with Jira Admins.
Learning Path
Become an effective Jira Software Project Admin
This learning path is designed for team leaders who configure Jira Software projects to match a team's processes.