From f59ce33d245b6c1b28115fb6dad67c057e7dc3e4 Mon Sep 17 00:00:00 2001 From: Jarrod Ribble Date: Thu, 18 Apr 2024 22:18:31 -0600 Subject: [PATCH] [Jira] Make get_issue_changelog start and limit work. The result will be formatted differently. --- atlassian/jira.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atlassian/jira.py b/atlassian/jira.py index 5cc30018d..e172237a3 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -1086,13 +1086,13 @@ def get_issue_changelog(self, issue_key, start=None, limit=None): :return: """ base_url = self.resource_url("issue") - url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key) + url = "{base_url}/{issue_key}/changelog".format(base_url=base_url, issue_key=issue_key) params = {} if start: params["startAt"] = start if limit: params["maxResults"] = limit - return (self.get(url) or {}).get("changelog", params) + return self.get(url, params=params) def issue_add_json_worklog(self, key, worklog): """