mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -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:
|
||||
'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 {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
body.maxResults = limit;
|
||||
qs.maxResults = limit;
|
||||
responseData = await jiraSoftwareCloudApiRequest.call(
|
||||
this,
|
||||
`/api/${apiVersion}/issue/${issueKey}/comment`,
|
||||
|
|
Loading…
Reference in a new issue