Skip to content

Commit 0b86336

Browse files
authored
[Jira] Project issues count KeyError fix (#1595)
Updated get_project_issues_count method to use "issues" key because "total" key no longer exists in JQL response.
1 parent b8f91ef commit 0b86336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@ def get_project_issues_count(self, project: str):
32023202
response = self.jql(jql, fields="*none")
32033203
if self.advanced_mode:
32043204
return cast("Response", response)
3205-
return cast("dict", response)["total"]
3205+
return len(cast("dict", response)["issues"])
32063206

32073207
def get_all_project_issues(
32083208
self, project: str, fields: Union[str, List[str]] = "*all", start: int = 0, limit: Optional[int] = None

0 commit comments

Comments
 (0)