mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Jira Software Node): Fix comments limit and add sorting (#9634)
This commit is contained in:
parent
c92765dcdb
commit
a946ead46e
|
@ -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`,
|
||||||
|
|
Loading…
Reference in a new issue