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

How do you fetch issues from jira software (cloud) , using REST Api without burdening the instance

raghuvarmaofficial March 9, 2023

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

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events