You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing api call using search_issues, it makes two API calls, one GET to the endpoint /rest/api/2/field and another to the actual url /rest/api/2/search. The first api call, returns the whole fields present in the JIRA server environment causing performance issues in the server. This is only done once the first time the function is used. Can this function be updated so that only the /rest/api/2/search is accessed?
# 1. Given a Jira client instancejira: JIRA# 2. When I call the function with below arguments issues_page=jira.search_issues(
jql_query,
startAt=start_at,
maxResults=MAX_RESULTS,
validate_query=False,
fields=fields_arg,
expand=None,
properties=None,
use_post=True)
# 3. It first calls the field endpoint and then it calls the search endpoint the first time, subsequent times doesnot include calls to field endpoint# 4. It should only call the search endpoint and not the field endpoint
...
Expected behaviour as below
/rest/api/2/serverInfo - authentication
/rest/api/2/search - first call to search_issues function
/rest/api/2/search - second call to search_issues function
/rest/api/2/search - third call to search_issues function
/rest/api/2/search - fourth call to search_issues function
Additional Context
None
The text was updated successfully, but these errors were encountered:
@aneeshco I might suggest subclassing the main Jira class with your own implementation, some of the features of this library are aimed at user convenience rather than pure performance.
There is something I can see regarding the default case for all fields, and this is an opportunity for improvement, where if all the fields are requested, then no API call to fields is necessary. I will therefore leave this issue open with that resolution being the required fix
Bug summary
When doing api call using search_issues, it makes two API calls, one GET to the endpoint /rest/api/2/field and another to the actual url /rest/api/2/search. The first api call, returns the whole fields present in the JIRA server environment causing performance issues in the server. This is only done once the first time the function is used. Can this function be updated so that only the /rest/api/2/search is accessed?
issues_page = jira.search_issues(
jql_query,
startAt=start_at,
maxResults=MAX_RESULTS,
validate_query=False,
fields=fields_arg,
expand=None,
properties=None,
use_post=True)
Is there an existing issue for this?
Jira Instance type
Jira Server or Data Center (Self-hosted)
Jira instance version
9.4.6
jira-python version
3.8
Python Interpreter version
3.11.5
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
Expected behaviour as below
/rest/api/2/serverInfo - authentication
/rest/api/2/search - first call to search_issues function
/rest/api/2/search - second call to search_issues function
/rest/api/2/search - third call to search_issues function
/rest/api/2/search - fourth call to search_issues function
Additional Context
None
The text was updated successfully, but these errors were encountered: