mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(Jira Software Node): 403 when getting a list of items from Jira Cloud (#14782)
This commit is contained in:
@@ -566,7 +566,7 @@ export class Jira implements INodeType {
|
||||
this,
|
||||
'/api/2/issuetype',
|
||||
'GET',
|
||||
body,
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
const subtaskIssues = [];
|
||||
@@ -690,7 +690,6 @@ export class Jira implements INodeType {
|
||||
this,
|
||||
'/api/2/issuetype',
|
||||
'GET',
|
||||
body,
|
||||
);
|
||||
const subtaskIssues = [];
|
||||
for (const issueType of issueTypes) {
|
||||
@@ -1298,7 +1297,6 @@ export class Jira implements INodeType {
|
||||
const issueKey = this.getNodeParameter('issueKey', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i);
|
||||
const body: IDataObject = {};
|
||||
Object.assign(qs, options);
|
||||
if (returnAll) {
|
||||
responseData = await jiraSoftwareCloudApiRequestAllItems.call(
|
||||
@@ -1306,7 +1304,7 @@ export class Jira implements INodeType {
|
||||
'comments',
|
||||
`/api/${apiVersion}/issue/${issueKey}/comment`,
|
||||
'GET',
|
||||
body,
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
@@ -1316,7 +1314,7 @@ export class Jira implements INodeType {
|
||||
this,
|
||||
`/api/${apiVersion}/issue/${issueKey}/comment`,
|
||||
'GET',
|
||||
body,
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
responseData = responseData.comments;
|
||||
|
||||
Reference in New Issue
Block a user