Skip to content

Commit

Permalink
Optimized the search_issues function because there is a unnecessary a…
Browse files Browse the repository at this point in the history
…pi call to /rest/api/2/field when all fields are requested
  • Loading branch information
Abbas707 committed Dec 5, 2024
1 parent 3a630c5 commit f2a68c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3550,7 +3550,7 @@ def search_issues(
# this will translate JQL field names to REST API Name
# most people do know the JQL names so this will help them use the API easier
untranslate = {} # use to add friendly aliases when we get the results back
if self._fields_cache:
if fields != ["*all"] and self._fields_cache:
for i, field in enumerate(fields):
if field in self._fields_cache:
untranslate[self._fields_cache[field]] = fields[i]
Expand Down

0 comments on commit f2a68c2

Please sign in to comment.