mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(Jira Software Node): Fix comments limit and add sorting (#9634)
This commit is contained in:
@@ -286,6 +286,23 @@ export const issueCommentFields: INodeProperties[] = [
|
|||||||
description:
|
description:
|
||||||
'Use expand to include additional information about comments in the response. This parameter accepts Rendered Body, which returns the comment body rendered in HTML.',
|
'Use expand to include additional information about comments in the response. This parameter accepts Rendered Body, which returns the comment body rendered in HTML.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Order By',
|
||||||
|
name: 'orderBy',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Created Ascending',
|
||||||
|
value: '+created',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Created Descending',
|
||||||
|
value: '-created',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
default: 'created_asc',
|
||||||
|
description: 'Order comments by the created date',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1280,7 +1280,7 @@ export class Jira implements INodeType {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const limit = this.getNodeParameter('limit', i);
|
const limit = this.getNodeParameter('limit', i);
|
||||||
body.maxResults = limit;
|
qs.maxResults = limit;
|
||||||
responseData = await jiraSoftwareCloudApiRequest.call(
|
responseData = await jiraSoftwareCloudApiRequest.call(
|
||||||
this,
|
this,
|
||||||
`/api/${apiVersion}/issue/${issueKey}/comment`,
|
`/api/${apiVersion}/issue/${issueKey}/comment`,
|
||||||
|
|||||||
Reference in New Issue
Block a user