From e1146fb7cfa690b18cd8f453c06eefde66cca8f4 Mon Sep 17 00:00:00 2001 From: Abbas707 Date: Thu, 5 Dec 2024 20:34:16 +0530 Subject: [PATCH] Optimized the search_issues function because there is a unnecessary api call to /rest/api/2/field when all fields are requested --- jira/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jira/client.py b/jira/client.py index 36dc2fea9..d00749e40 100644 --- a/jira/client.py +++ b/jira/client.py @@ -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]