Skip to content

Commit

Permalink
API Updates (#239)
Browse files Browse the repository at this point in the history
* dependencies updated

* axios version downgraded

* - `accessType` and `applicationKey` properties added to `bulkGetGroups` method `Groups` API.
- `movePriorities` and `deletePriority` methods added to `IssuePriorities` API.

* Version 2 models updated

* Version 3 api updated

* Version 3 models updated
  • Loading branch information
MrRefactoring authored Oct 24, 2022
1 parent 44fa24b commit 17e1f44
Show file tree
Hide file tree
Showing 74 changed files with 1,130 additions and 747 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Jira.js changelog

### 2.15.12

- Version 2, 3:
- `accessType` and `applicationKey` properties added to `bulkGetGroups` method `Groups` API.
- `movePriorities` and `deletePriority` methods added to `IssuePriorities` API.
- Models updated

### 2.15.11

- All properties in `PageOfWorklogs` marked as required.
Expand Down
30 changes: 15 additions & 15 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "^18.7.22",
"@types/node": "^18.7.23",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/src/getAllWorklogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async function getAllWorklogs() {
do {
const worklogsPaginated = await client.issueWorklogs.getIssueWorklog({ issueIdOrKey: issue.key, startAt: offset });

offset += worklogsPaginated.worklogs!.length;
total = worklogsPaginated.total!;
worklogs.push(...worklogsPaginated.worklogs!);
offset += worklogsPaginated.worklogs.length;
total = worklogsPaginated.total;
worklogs.push(...worklogsPaginated.worklogs);
} while (offset < total);

console.log(`Received ${worklogs.length} worklogs.`);
Expand Down
Loading

0 comments on commit 17e1f44

Please sign in to comment.