-
-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: Add enhanced_search_issues API for Jira Cloud using new search/jql endpoint #2324
enhancement: Add enhanced_search_issues API for Jira Cloud using new search/jql endpoint #2324
Conversation
Introduce a new function enhanced_search_issues that calls the new search/jql REST endpoint, replacing the deprecated search API for Jira Cloud. This update leverages nextPageToken-based pagination for improved performance and prepares the library for the removal of the old endpoints (GET/POST /rest/api/3/search) effective May 1, 2025. BREAKING CHANGE: Jira Cloud users should migrate to enhanced_search_issues as the old search_issues endpoint is deprecated.
@skumar36-atlassian, ⭐3 XP earned, 🏆First Pull Request Pushed completed! |
for more information, see https://pre-commit.ci
Label error. Requires exactly 1 of: bug, enhancement, major, minor, patch, skip-changelog. Found: feature |
Pull Request Summary by devActivityMetricsAchievements
|
Will be creating a new PR with a new label as it's failing the label check. |
@skumar36-atlassian, ⭐3 XP earned, 🏆First Comment Added completed, 💪Level 1 achieved! |
Overview
This PR introduces two new functions for Jira Cloud:
enhanced_search_issues:
This function leverages the new search/jql REST endpoint with nextPageToken-based pagination. It is designed to replace the deprecated search API endpoints (GET/POST /rest/api/3/search), which Atlassian has already deprecated and will remove support for on May 1, 2025. The function allows for either limited or complete fetching of results (when maxResults is set to false).
approximate_issue_count:
This new function calls the search/approximate-count API to retrieve an approximate count of issues matching a given JQL query. This endpoint is available only for Jira Cloud and is essential for users who need a quick estimation of matching issues.
Changes
maxResults
evaluates to false; otherwise, it fetches up to the specified limit.json_result
flag.@cloud_api
to ensure they are only used on Jira Cloud.Testing & Limitations
Migration & Impact
Atlassian has already deprecated the old search API endpoints, and support for these endpoints will be removed on May 1, 2025.
Jira Cloud users must migrate to using
enhanced_search_issues
andapproximate_issue_count
to ensure continued compatibility.Additional Context
Please review the changes and let me know if any further modifications are required.