fix(Jira Software Node): Fix comments limit and add sorting (#9634)

This commit is contained in:
pemontto 2024-06-05 15:26:15 +01:00 committed by GitHub
parent c92765dcdb
commit a946ead46e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View file

@ -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',
},
], ],
}, },

View file

@ -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`,