Skip to content

Commit

Permalink
[Jira] Make get_issue_changelog start and limit work. (#1375)
Browse files Browse the repository at this point in the history
* [Jira] Make get_issue_changelog start and limit work. The result will be formatted differently.

* Try to get the read the docs build working.
  • Loading branch information
jribble committed Apr 25, 2024
1 parent d7f8676 commit 591ca2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Required
version: 2

build:
os: ubuntu-lts-latest
tools:
python: "3.8"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand Down
4 changes: 2 additions & 2 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,13 +1221,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 591ca2c

Please sign in to comment.