mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Jira Software Node): 403 when getting a list of items from Jira Cloud (#14782)
This commit is contained in:
@@ -88,15 +88,19 @@ export async function jiraSoftwareCloudApiRequestAllItems(
|
||||
let responseData;
|
||||
|
||||
query.startAt = 0;
|
||||
body.startAt = 0;
|
||||
query.maxResults = 100;
|
||||
body.maxResults = 100;
|
||||
if (method !== 'GET') {
|
||||
body.startAt = 0;
|
||||
body.maxResults = 100;
|
||||
}
|
||||
|
||||
do {
|
||||
responseData = await jiraSoftwareCloudApiRequest.call(this, endpoint, method, body, query);
|
||||
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
|
||||
query.startAt = (responseData.startAt as number) + (responseData.maxResults as number);
|
||||
body.startAt = (responseData.startAt as number) + (responseData.maxResults as number);
|
||||
if (method !== 'GET') {
|
||||
body.startAt = (responseData.startAt as number) + (responseData.maxResults as number);
|
||||
}
|
||||
} while (
|
||||
(responseData.startAt as number) + (responseData.maxResults as number) <
|
||||
responseData.total
|
||||
|
||||
Reference in New Issue
Block a user