[JIRA] Add search/jql and search/approximate-count APIs support for Jira Cloud #1513
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces two new functions specifically for Jira Cloud to replace deprecated search APIs:
enhanced_search_issues
search/jql
REST endpoint with nextPageToken-based pagination.GET/POST /rest/api/3/search
).approximate_issue_count
search/approximate-count
API to retrieve an approximate count of issues for a given JQL query.Changes
enhanced_search_issues
to perform nextPageToken-based pagination for Jira Cloud.approximate_issue_count
to provide a quick issue count.@cloud_api
to ensure they’re used only on Jira Cloud.Testing & Limitations
Migration & Impact
Atlassian has already deprecated the old search API endpoints. Jira Cloud users must migrate to
enhanced_search_issues
andapproximate_issue_count
to ensure continued compatibility beyond May 1, 2025.Additional Context
Please review the changes and let me know if you have any questions or further suggestions. Thanks!