Skip to content

Commit

Permalink
fix(Jira Software Node): Fix comments limit and add sorting (#9634)
Browse files Browse the repository at this point in the history
  • Loading branch information
pemontto committed Jun 5, 2024
1 parent c92765d commit a946ead
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions packages/nodes-base/nodes/Jira/IssueCommentDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],
},

Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Jira/Jira.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit a946ead

Please sign in to comment.