MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
365 stars 49 forks source link

Paginated request example #265

Closed juliofarah closed 1 year ago

juliofarah commented 1 year ago

Hi 👋

Thanks for putting this library together! It's definitely a life saver!

I see there is a deprecation warning for projects.getAllProjects that suggests the usage of pagination. I cannot find any documentation around paginated requests or any alternative endpoints for getAllProjects. Any chance you could add an example of a paginated request, or even how to get all projects with pagination?

Thanks in advance

MrRefactoring commented 1 year ago

Hello @juliofarah! Here the doc page for paginated project search: https://mrrefactoring.github.io/jira.js/classes/Version2.Projects.html#searchProjects

juliofarah commented 1 year ago

I see! Thank you so much for the clarification!

I see the paginated endpoint is actually in client Version 2. Which client do you advise using?

MrRefactoring commented 1 year ago

Any you like. Version 3 and Version 2 pretty same

MrRefactoring commented 1 year ago

Looks like I can close this issue as resolved