Skip to content

Commit

Permalink
[Jira] Make get_issue_changelog start and limit work. The result will…
Browse files Browse the repository at this point in the history
… be formatted differently.
  • Loading branch information
jribble committed Apr 19, 2024
1 parent 0d74d1c commit f59ce33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f59ce33

Please sign in to comment.