From 4ceb5182a96914da0f9fcfc7d5b949c7f51b21ee Mon Sep 17 00:00:00 2001 From: Marty Vo Date: Mon, 27 Oct 2025 20:12:55 -0400 Subject: [PATCH] [Jira] Project issues count KeyError fix Updated get_project_issues_count method to use "issues" key because "total" key no longer exists in JQL response. --- atlassian/jira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlassian/jira.py b/atlassian/jira.py index a6abd2e98..963427d5c 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -3202,7 +3202,7 @@ def get_project_issues_count(self, project: str): response = self.jql(jql, fields="*none") if self.advanced_mode: return cast("Response", response) - return cast("dict", response)["total"] + return len(cast("dict", response)["issues"]) def get_all_project_issues( self, project: str, fields: Union[str, List[str]] = "*all", start: int = 0, limit: Optional[int] = None